"Troy Rollo" <wine(a)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.