# HG changeset patch # User Sebastien Jodogne # Date 1555683433 -7200 # Node ID d933fc19214a94be6e144b44b63250c999b4798f # Parent 2faf9b53d6d93e9a6d587312f8a9b696ee5b14fc fix windows build diff -r 2faf9b53d6d9 -r d933fc19214a Framework/OpenGL/IOpenGLContext.h --- a/Framework/OpenGL/IOpenGLContext.h Fri Apr 19 16:10:27 2019 +0200 +++ b/Framework/OpenGL/IOpenGLContext.h Fri Apr 19 16:17:13 2019 +0200 @@ -21,18 +21,8 @@ #pragma once -#if !defined(ORTHANC_ENABLE_OPENGL) -# error The macro ORTHANC_ENABLE_OPENGL must be defined -#endif - -#if ORTHANC_ENABLE_OPENGL != 1 -# error Support for OpenGL is disabled -#endif - - #include - namespace OrthancStone { namespace OpenGL diff -r 2faf9b53d6d9 -r d933fc19214a Framework/OpenGL/OpenGLProgram.h --- a/Framework/OpenGL/OpenGLProgram.h Fri Apr 19 16:10:27 2019 +0200 +++ b/Framework/OpenGL/OpenGLProgram.h Fri Apr 19 16:17:13 2019 +0200 @@ -29,8 +29,15 @@ # error Support for OpenGL is disabled #endif +#if defined(__APPLE__) +# include +# include +#else +# include +# include +#endif + #include -#include #include namespace OrthancStone diff -r 2faf9b53d6d9 -r d933fc19214a Framework/OpenGL/OpenGLShader.h --- a/Framework/OpenGL/OpenGLShader.h Fri Apr 19 16:10:27 2019 +0200 +++ b/Framework/OpenGL/OpenGLShader.h Fri Apr 19 16:17:13 2019 +0200 @@ -29,8 +29,15 @@ # error Support for OpenGL is disabled #endif +#if defined(__APPLE__) +# include +# include +#else +# include +# include +#endif + #include -#include #include namespace OrthancStone diff -r 2faf9b53d6d9 -r d933fc19214a Framework/OpenGL/OpenGLTexture.h --- a/Framework/OpenGL/OpenGLTexture.h Fri Apr 19 16:10:27 2019 +0200 +++ b/Framework/OpenGL/OpenGLTexture.h Fri Apr 19 16:17:13 2019 +0200 @@ -29,9 +29,16 @@ # error Support for OpenGL is disabled #endif +#if defined(__APPLE__) +# include +# include +#else +# include +# include +#endif + #include -#include #include