mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 12:25:07 +00:00
kdrive: fix build on win32/mingw
Yet one more clash between <windows.h> and Xserver on `CreateWindow` symbol: The windows header has a `#define CreateWindow CreateWindowA`, so we need to #undef it everywhere we're using `CreateWindow` - until we've got that ugly header out of the way completely. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -35,6 +35,9 @@
|
||||
#include <dixstruct.h>
|
||||
#include "privates.h"
|
||||
|
||||
/* workaround for <windows.h> being included somewhere and conflicting with us */
|
||||
#undef CreateWindow
|
||||
|
||||
#ifdef RANDR
|
||||
#include <randrstr.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user