mirror of https://github.com/FreeRDP/FreeRDP
Silence GCC reserved-id-macro warnings in compatibility header
This commit is contained in:
parent
0f8c52b9ca
commit
9f0eff604e
|
@ -31,6 +31,11 @@
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wreserved-id-macro"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DUMMYUNIONNAME u
|
#define DUMMYUNIONNAME u
|
||||||
#define DUMMYUNIONNAME1 u1
|
#define DUMMYUNIONNAME1 u1
|
||||||
#define DUMMYUNIONNAME2 u2
|
#define DUMMYUNIONNAME2 u2
|
||||||
|
@ -954,6 +959,10 @@ extern "C++"
|
||||||
#define CONTAINING_RECORD(address, type, field) \
|
#define CONTAINING_RECORD(address, type, field) \
|
||||||
((type*)((PCHAR)(address) - (ULONG_PTR)(&((type*)0)->field)))
|
((type*)((PCHAR)(address) - (ULONG_PTR)(&((type*)0)->field)))
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
|
|
Loading…
Reference in New Issue