summaryrefslogtreecommitdiff
path: root/src/system-gl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system-gl.h')
-rw-r--r--src/system-gl.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/system-gl.h b/src/system-gl.h
index dd465f6..d7de3c6 100644
--- a/src/system-gl.h
+++ b/src/system-gl.h
@@ -1,16 +1,16 @@
#ifndef SYSTEMGL_H_
#define SYSTEMGL_H_
-#ifdef _WIN32
-// Prevent obtuse compile errors on Win32/mingw32. This is related
-// GLU Tessellation callback definitions, and how glew deals with them.
-#include <windows.h>
-#endif
-
#include <GL/glew.h>
-#include <string>
-std::string glew_dump(bool dumpall=false);
-bool report_glerror(const char *task);
+#ifdef __APPLE__
+ #include <OpenGL/OpenGL.h>
+#else
+ #include <GL/gl.h>
+ #include <GL/glu.h>
+ #ifdef _WIN32
+ #include <windows.h> // For the CALLBACK macro
+ #endif
+#endif
#endif
contact: Jan Huwald // Impressum