changeset 583:f9ac154c5a63

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 19 Apr 2019 17:16:37 +0200
parents e36e69a380a5
children 434ceeb0bcab
files Framework/OpenGL/OpenGLIncludes.h
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/OpenGL/OpenGLIncludes.h	Fri Apr 19 16:43:08 2019 +0200
+++ b/Framework/OpenGL/OpenGLIncludes.h	Fri Apr 19 17:16:37 2019 +0200
@@ -32,10 +32,14 @@
 #if defined(__APPLE__)
 #  include <OpenGL/gl.h>
 #  include <OpenGL/glext.h>
+#elif defined(_WIN32)
+// On Windows, use the compatibility headers provided by SDL
+#  if ORTHANC_ENABLE_SDL == 1
+#    include <SDL_opengl.h>
+#  else
+#    error Stone cannot be compiled on Windows without SDL
+#  endif
 #else
-#  if defined(_WIN32)
-#    include <windows.h>
-#  endif
 #  include <GL/gl.h>
 #  include <GL/glext.h>
 #endif