ntdll: Fix compilation on systems that don't support nameless structs.

Alexandre Julliard julliard at winehq.org
Mon Feb 12 06:07:31 CST 2007


Francois Gouget <fgouget at free.fr> writes:

> diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c
> index 34a05b7..4d5c41d 100644
> --- a/dlls/ntdll/rtl.c
> +++ b/dlls/ntdll/rtl.c
> @@ -40,6 +40,12 @@
>  
>  WINE_DEFAULT_DEBUG_CHANNEL(ntdll);
>  
> +#ifdef NONAMELESSSTRUCT
> +# define S(x)  (x).s
> +#else
> +# define S(x)  (x)
> +#endif
> +

You shouldn't need that sort of macro in the Wine code. Simply define
NONAMELESSSTRUCT unconditionally.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list