aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glx/glheader.h
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/glx/glheader.h')
-rw-r--r--xorg-server/glx/glheader.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/xorg-server/glx/glheader.h b/xorg-server/glx/glheader.h
new file mode 100644
index 000000000..c87193291
--- /dev/null
+++ b/xorg-server/glx/glheader.h
@@ -0,0 +1,37 @@
+#ifndef __GLHEADER_H__
+#define __GLHEADER_H__
+
+#define STDC_HEADERS 1
+
+#include <X11/Xwinsock.h>
+#include <X11/Xwindows.h>
+#include <assert.h>
+#define strcasecmp _stricmp
+
+#undef MINSHORT
+#undef MAXSHORT
+
+#define MINSHORT -32768
+#define MAXSHORT 32767
+
+#ifndef PUBLIC
+#define PUBLIC
+#endif
+
+#define GL_GLEXT_PROTOTYPES
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+/**
+ * GL_FIXED is defined in glext.h version 64 but these typedefs aren't (yet).
+ */
+typedef int GLclampx;
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+