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:
Enrico Weigelt, metux IT consult
2025-08-01 16:39:08 +02:00
parent 3765d8a7b9
commit bb1f1752bd

View File

@@ -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