rpcndr.h: Added EXTERN_GUID define.

This commit is contained in:
Jacek Caban 2013-08-19 16:47:36 +02:00 committed by Alexandre Julliard
parent c52282fe7b
commit 6261ab2686
1 changed files with 12 additions and 0 deletions

View File

@ -37,6 +37,18 @@ extern "C" {
# define CONST_VTBL
#endif
#ifdef __cplusplus
#define EXTERN_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
EXTERN_C const GUID DECLSPEC_SELECTANY name DECLSPEC_HIDDEN; \
EXTERN_C const GUID DECLSPEC_SELECTANY name = \
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
#else
#define EXTERN_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
const GUID DECLSPEC_SELECTANY name DECLSPEC_HIDDEN; \
const GUID DECLSPEC_SELECTANY name = \
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
#endif
/* stupid #if can't handle casts... this __stupidity
is just a workaround for that limitation */