[PSDK] Add DECLSPEC_SELECTANY to GUIDs to make GCC 8 happy

This commit is contained in:
Timo Kreuzer 2019-04-27 22:16:49 +02:00
parent cd9f9e8b94
commit 846cd55294

View file

@ -61,8 +61,13 @@ typedef struct _GUID
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
#endif
#else
#if __GNUC__ >= 8
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
EXTERN_C const GUID DECLSPEC_SELECTANY name
#else
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
EXTERN_C const GUID name
#endif // __GNUC__ >= 7
#endif
#define DEFINE_OLEGUID(name, l, w1, w2) \