include/guiddef.h: C++ compatibility patch

Dmitry Timoshkov dmitry at baikal.ru
Wed Aug 31 04:10:46 CDT 2005


"Troy Rollo" <wine at troy.rollo.name> wrote:

>  #ifdef INITGUID
> +#ifdef __cplusplus
>  #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
> +        extern const GUID name = \
> + { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
> +#else
> +#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
>          const GUID name = \
>   { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
> +#endif
>  #else
>  #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
>      extern const GUID name

PSDK has 'extern' for both C and CPP cases, just the CPP one has 'extern "C"'.
We have to use the same approach.

-- 
Dmitry.




More information about the wine-devel mailing list