Win32: Fix collision over 'ControlMask'

Workaround the collision between ControlMask #defined in X11/X.h and
ControlMask used as the name of a structure member in
w32api/processthreadsapi.h in w32api 10.0.0
This commit is contained in:
Jon Turney 2022-06-22 10:35:26 +01:00 committed by Alan Coopersmith
parent 7ca8d2042d
commit ede86501a4
2 changed files with 6 additions and 0 deletions

View file

@ -72,6 +72,8 @@ The Open Group.
#define ATOM wATOM
#define BYTE wBYTE
#define FreeResource wFreeResource
#pragma push_macro ("ControlMask")
#undef ControlMask
#include <windows.h>
#undef NOMINMAX
#undef Status
@ -83,6 +85,7 @@ The Open Group.
#undef LONG64
#undef ATOM
#undef FreeResource
#pragma pop_macro ("ControlMask")
#undef CreateWindowA
/*

View file

@ -52,6 +52,8 @@ The Open Group.
#define ATOM wATOM
#define BYTE wBYTE
#define FreeResource wFreeResource
#pragma push_macro ("ControlMask")
#undef ControlMask
#include <winsock2.h>
#undef Status
#define Status int
@ -60,6 +62,7 @@ The Open Group.
#undef INT32
#undef ATOM
#undef FreeResource
#pragma pop_macro ("ControlMask")
#undef CreateWindowA
#undef RT_FONT
#undef RT_CURSOR