summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/refresh/gl/qgl/dynamic.h9
-rw-r--r--src/refresh/gl/qgl/fixed.h8
2 files changed, 16 insertions, 1 deletions
diff --git a/src/refresh/gl/qgl/dynamic.h b/src/refresh/gl/qgl/dynamic.h
index 1366799..4b322ba 100644
--- a/src/refresh/gl/qgl/dynamic.h
+++ b/src/refresh/gl/qgl/dynamic.h
@@ -19,12 +19,19 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef QGL_H
#define QGL_H
+#if USE_SDL
+#include <SDL_opengl.h>
+#else // USE_SDL
+#ifdef _MSC_VER
+#define WIN32_LEAN_AND_MEAN 1
+#include <windows.h>
+#endif // _MSC_VER
#include <GL/gl.h>
#include <GL/glext.h>
-
#ifndef APIENTRY
#define APIENTRY
#endif
+#endif // !USE_SDL
// subset of OpenGL 1.1 core functions
#define QGL_core_IMP \
diff --git a/src/refresh/gl/qgl/fixed.h b/src/refresh/gl/qgl/fixed.h
index 31045ca..d041fd1 100644
--- a/src/refresh/gl/qgl/fixed.h
+++ b/src/refresh/gl/qgl/fixed.h
@@ -19,8 +19,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef QGL_H
#define QGL_H
+#if USE_SDL
+#include <SDL_opengl.h>
+#else // USE_SDL
+#ifdef _MSC_VER
+#define WIN32_LEAN_AND_MEAN 1
+#include <windows.h>
+#endif // _MSC_VER
#include <GL/gl.h>
#include <GL/glext.h>
+#endif // !USE_SDL
// ==========================================================