mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
(1889) xwin: fix name clash between Xserver and Windows headers
> ../hw/xwin/winscrinit.c: In function ‘winFinishScreenInitFB’: > ../hw/xwin/winscrinit.c:381:18: error: ‘struct _Screen’ has no member named ‘CreateWindowA’; did you mean ‘CreateWindow’? > 381 | pScreen->CreateWindow = winCreateWindowRootless; > | ^~~~~~~~~~~~ > ../hw/xwin/winscrinit.c:405:18: error: ‘struct _Screen’ has no member named ‘CreateWindowA’; did you mean ‘CreateWindow’? > 405 | pScreen->CreateWindow = winCreateWindowMultiWindow; > | ^~~~~~~~~~~~ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -38,6 +38,10 @@
|
||||
#include "win.h"
|
||||
#include "winmsg.h"
|
||||
|
||||
// workaround for win32/mingw32 name clash:
|
||||
// windows headers #define CreateWindow to CreateWindowA
|
||||
#undef CreateWindow
|
||||
|
||||
/*
|
||||
* Determine what type of screen we are initializing
|
||||
* and call the appropriate procedure to initialize
|
||||
|
||||
Reference in New Issue
Block a user