mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2025-12-20 04:40:10 +01:00
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:
parent
7ca8d2042d
commit
ede86501a4
2 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue