summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GL/windows/ChangeLog9
-rw-r--r--GL/windows/glwindows.h4
-rwxr-xr-xGL/windows/glwrap.c5
3 files changed, 11 insertions, 7 deletions
diff --git a/GL/windows/ChangeLog b/GL/windows/ChangeLog
index 484bc9e7b..030e4e611 100644
--- a/GL/windows/ChangeLog
+++ b/GL/windows/ChangeLog
@@ -1,3 +1,12 @@
+2005-02-02 Alexander Gottwald <ago at freedesktop dot org>
+
+ * glwrap.c:
+ * glwindows.h:
+ Bugzilla #1866 (https://bugs.freedesktop.org/show_bug.cgi?id=1866)
+ attachment #1818 (https://bugs.freedesktop.org/attachment.cgi?id=1818):
+ Include Xwindows.h before GL/gl.h to prevent loading windows.h which
+ pollutes our namespace with some symbols.
+
2005-01-27 Alexander Gottwald <ago at freedesktop dot org>
* glwrap.c:
diff --git a/GL/windows/glwindows.h b/GL/windows/glwindows.h
index aa984099c..77581ddba 100644
--- a/GL/windows/glwindows.h
+++ b/GL/windows/glwindows.h
@@ -1,3 +1,4 @@
+#include <Xwindows.h>
#include <GL/gl.h>
#include <GL/glext.h>
@@ -19,9 +20,6 @@
#include <GL/internal/glcore.h>
#include <stdlib.h>
-#define WINDOWS_LEAN_AND_CLEAN
-#include <windows.h>
-
typedef struct {
unsigned enableDebug : 1;
diff --git a/GL/windows/glwrap.c b/GL/windows/glwrap.c
index 807e51972..656edc131 100755
--- a/GL/windows/glwrap.c
+++ b/GL/windows/glwrap.c
@@ -5,15 +5,12 @@
* Authors: Alexander Gottwald
*/
+#include <Xwindows.h>
#include <GL/gl.h>
#include <GL/glext.h>
#include <glxserver.h>
#include <glxext.h>
-#define WINDOWS_LEAN_AND_CLEAN
-#include <windows.h>
-
-
#define RESOLVE_RET(procname, symbol, retval) \
static Bool init = TRUE; \
static procname proc = NULL; \