aboutsummaryrefslogtreecommitdiff
path: root/libtess/gluos.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtess/gluos.h')
-rw-r--r--libtess/gluos.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/libtess/gluos.h b/libtess/gluos.h
new file mode 100644
index 0000000..2a22f74
--- /dev/null
+++ b/libtess/gluos.h
@@ -0,0 +1,46 @@
+/*
+** gluos.h - operating system dependencies for GLU
+**
+** $Header$
+*/
+#ifdef __VMS
+#ifdef __cplusplus
+#pragma message disable nocordel
+#pragma message disable codeunreachable
+#pragma message disable codcauunr
+#endif
+#endif
+
+#ifdef _WIN32
+#include <stdlib.h> /* For _MAX_PATH definition */
+#include <stdio.h>
+#include <malloc.h>
+
+#define WIN32_LEAN_AND_MEAN
+#define NOGDI
+#define NOIME
+#define NOMINMAX
+
+#define _WIN32_WINNT 0x0400
+#ifndef STRICT
+ #define STRICT 1
+#endif
+
+#include <windows.h>
+
+/* Disable warnings */
+#pragma warning(disable : 4101)
+#pragma warning(disable : 4244)
+#pragma warning(disable : 4761)
+
+#if defined(_MSC_VER) && _MSC_VER >= 1200
+#pragma comment(linker, "/OPT:NOWIN98")
+#endif
+
+#else
+
+/* Disable Microsoft-specific keywords */
+#define GLAPIENTRY
+#define WINGDIAPI
+
+#endif