From e8ee55ea0794dd985e73b26d3e889f6eda16bf3d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Apr 2016 18:00:22 +0300 Subject: Fix glext.h include for MacOSX. --- src/render/mobileopengl2graphics.h | 6 ++++-- src/render/mobileopenglgraphics.h | 6 ++++-- src/render/modernopenglgraphics.h | 6 ++++-- src/render/normalopenglgraphics.h | 6 ++++-- src/render/nullopenglgraphics.h | 6 ++++-- src/render/opengl/mgltypes.h | 4 ++++ src/render/safeopenglgraphics.h | 6 ++++-- src/resources/fboinfo.h | 6 ++++-- 8 files changed, 32 insertions(+), 14 deletions(-) diff --git a/src/render/mobileopengl2graphics.h b/src/render/mobileopengl2graphics.h index ecd04cc89..d1b5b96a5 100644 --- a/src/render/mobileopengl2graphics.h +++ b/src/render/mobileopengl2graphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include -#ifndef __native_client__ +#if defined(__APPLE__) +#include +#elif !defined(__native_client__) #include -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/mobileopenglgraphics.h b/src/render/mobileopenglgraphics.h index 7af81a4c8..7f14fc6f8 100644 --- a/src/render/mobileopenglgraphics.h +++ b/src/render/mobileopenglgraphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include -#ifndef __native_client__ +#if defined(__APPLE__) +#include +#elif !defined(__native_client__) #include -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index 0c7d0d5c9..2776cc1fb 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include -#ifndef __native_client__ +#if defined(__APPLE__) +#include +#elif !defined(__native_client__) #include -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/normalopenglgraphics.h b/src/render/normalopenglgraphics.h index 05014deed..8f6652775 100644 --- a/src/render/normalopenglgraphics.h +++ b/src/render/normalopenglgraphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include -#ifndef __native_client__ +#if defined(__APPLE__) +#include +#elif !defined(__native_client__) #include -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/nullopenglgraphics.h b/src/render/nullopenglgraphics.h index fb7cdc806..9d5229674 100644 --- a/src/render/nullopenglgraphics.h +++ b/src/render/nullopenglgraphics.h @@ -39,9 +39,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include -#ifndef __native_client__ +#if defined(__APPLE__) +#include +#elif !defined(__native_client__) #include -#endif +#endif // defined(__APPLE__) #endif class OpenGLGraphicsVertexes; diff --git a/src/render/opengl/mgltypes.h b/src/render/opengl/mgltypes.h index cea84350b..96f86bde3 100644 --- a/src/render/opengl/mgltypes.h +++ b/src/render/opengl/mgltypes.h @@ -38,7 +38,11 @@ #ifdef __native_client__ #include #else +#if defined(__APPLE__) +#include +#else // defined(__APPLE__) #include +#endif // defined(__APPLE__) #endif #endif diff --git a/src/render/safeopenglgraphics.h b/src/render/safeopenglgraphics.h index 212c49e9d..f511db871 100644 --- a/src/render/safeopenglgraphics.h +++ b/src/render/safeopenglgraphics.h @@ -37,9 +37,11 @@ #define GL_GLEXT_PROTOTYPES 1 #endif #include -#ifndef __native_client__ +#if defined(__APPLE__) +#include +#elif !defined(__native_client__) #include -#endif +#endif // defined(__APPLE__) #endif class SafeOpenGLGraphics final : public Graphics diff --git a/src/resources/fboinfo.h b/src/resources/fboinfo.h index 1427b05af..c97e4eee8 100644 --- a/src/resources/fboinfo.h +++ b/src/resources/fboinfo.h @@ -30,9 +30,11 @@ #include #else #include -#ifndef __native_client__ +#if defined(__APPLE__) +#include +#elif !defined(__native_client__) #include -#endif +#endif // defined(__APPLE__) #endif struct FBOInfo final -- cgit v1.2.3-70-g09d2