summaryrefslogtreecommitdiff
path: root/auto/src/wglew_head.h
diff options
context:
space:
mode:
Diffstat (limited to 'auto/src/wglew_head.h')
-rw-r--r--auto/src/wglew_head.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/auto/src/wglew_head.h b/auto/src/wglew_head.h
new file mode 100644
index 0000000..df88503
--- /dev/null
+++ b/auto/src/wglew_head.h
@@ -0,0 +1,36 @@
+#ifndef __wglew_h__
+#define __wglew_h__
+#define __WGLEW_H__
+
+#ifdef __wglext_h_
+#error wglext.h included before wglew.h
+#endif
+
+#define __wglext_h_
+
+#if !defined(WINAPI)
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN 1
+# endif
+#include <windows.h>
+# undef WIN32_LEAN_AND_MEAN
+#endif
+
+/*
+ * GLEW_STATIC needs to be set when using the static version.
+ * GLEW_BUILD is set when building the DLL version.
+ */
+#ifdef GLEW_STATIC
+# define GLEWAPI extern
+#else
+# ifdef GLEW_BUILD
+# define GLEWAPI extern __declspec(dllexport)
+# else
+# define GLEWAPI extern __declspec(dllimport)
+# endif
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+