Silence GCC reserved-id-macro warnings in compatibility header

This commit is contained in:
Armin Novak 2021-09-07 08:42:07 +02:00 committed by akallabeth
parent 0f8c52b9ca
commit 9f0eff604e
1 changed files with 9 additions and 0 deletions

View File

@ -31,6 +31,11 @@
#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__)