From: dbv Date: Fri, 4 Jul 2014 09:14:32 +0000 (+0400) Subject: 0025051: Compilation issues on OS X 10.6.8 X-Git-Tag: V6_8_0_beta~224 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=0e9d3b83b88ae69226681e6678f37c53e156401e;p=occt-copy.git 0025051: Compilation issues on OS X 10.6.8 Added define to prevent inclusion of system glext.h on Mac OS X 10.6.8 --- diff --git a/src/OpenGl/OpenGl_Context_1.mm b/src/OpenGl/OpenGl_Context_1.mm index 0c5badad5d..f5b5cf723f 100644 --- a/src/OpenGl/OpenGl_Context_1.mm +++ b/src/OpenGl/OpenGl_Context_1.mm @@ -15,6 +15,8 @@ #if defined(__APPLE__) && !defined(MACOSX_USE_GLX) +#define GL_GLEXT_LEGACY // To prevent inclusion of system glext.h on Mac OS X 10.6.8 + #import #include diff --git a/src/OpenGl/OpenGl_Window_1.mm b/src/OpenGl/OpenGl_Window_1.mm index 59444040ef..2ac4f5d746 100644 --- a/src/OpenGl/OpenGl_Window_1.mm +++ b/src/OpenGl/OpenGl_Window_1.mm @@ -15,6 +15,8 @@ #if defined(__APPLE__) && !defined(MACOSX_USE_GLX) +#define GL_GLEXT_LEGACY // To prevent inclusion of system glext.h on Mac OS X 10.6.8 + #import #include