https://git.reactos.org/?p=reactos.git;a=commitdiff;h=846cd55294c1192b191a2…
commit 846cd55294c1192b191a21b16bc9a36360cd92e1
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sat Apr 27 22:16:49 2019 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Sat Jul 20 13:56:18 2019 +0200
[PSDK] Add DECLSPEC_SELECTANY to GUIDs to make GCC 8 happy
---
sdk/include/psdk/guiddef.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sdk/include/psdk/guiddef.h b/sdk/include/psdk/guiddef.h
index 8e8b7c92e35..143546270f2 100644
--- a/sdk/include/psdk/guiddef.h
+++ b/sdk/include/psdk/guiddef.h
@@ -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) \