aboutsummaryrefslogtreecommitdiff
path: root/libX11/src
diff options
context:
space:
mode:
Diffstat (limited to 'libX11/src')
-rw-r--r--libX11/src/CrWindow.c4
-rw-r--r--libX11/src/Window.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/libX11/src/CrWindow.c b/libX11/src/CrWindow.c
index 23f7ddce0..347e9a022 100644
--- a/libX11/src/CrWindow.c
+++ b/libX11/src/CrWindow.c
@@ -29,6 +29,10 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "Xlibint.h"
+#ifdef _MSC_VER
+#undef CreateWindow
+#endif
+
Window XCreateSimpleWindow(
register Display *dpy,
Window parent,
diff --git a/libX11/src/Window.c b/libX11/src/Window.c
index 85a28f372..341efee0f 100644
--- a/libX11/src/Window.c
+++ b/libX11/src/Window.c
@@ -29,6 +29,10 @@ in this Software without prior written authorization from The Open Group.
#endif
#include "Xlibint.h"
+#ifdef _MSC_VER
+#undef CreateWindow
+#endif
+
void _XProcessWindowAttributes (
register Display *dpy,
xChangeWindowAttributesReq *req,