Silence GCC reserved-id-macro warnings in compatibility header
#else
+#if defined(__GNUC__)
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wreserved-id-macro"
+#endif
+
#define DUMMYUNIONNAME u
#define DUMMYUNIONNAME1 u1
#define DUMMYUNIONNAME2 u2
@@ -954,6 +959,10 @@ extern "C++"
#define CONTAINING_RECORD(address, type, field) \
((type*)((PCHAR)(address) - (ULONG_PTR)(&((type*)0)->field)))
+#if defined(__GNUC__)
+#pragma GCC diagnostic pop
+#endif
+
#endif
#if defined(_WIN32) || defined(__CYGWIN__)
