1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0023101: TKOpenGl possible glext header conflicts

This commit is contained in:
kgv 2012-04-12 08:55:12 +04:00
parent 248622f8cb
commit 833e2f54e4

View File

@ -41,9 +41,11 @@
// current TKOpenGl implementation is incompatible with native OpenGL on MacOS X // current TKOpenGl implementation is incompatible with native OpenGL on MacOS X
#define MACOSX_USE_GLX #define MACOSX_USE_GLX
// exclude modern definitions and system-provided glext.h, should be defined before gl.h inclusion
#define GL_GLEXT_LEGACY
// include main OpenGL header provided with system // include main OpenGL header provided with system
#if defined(__APPLE__) && !defined(MACOSX_USE_GLX) #if defined(__APPLE__) && !defined(MACOSX_USE_GLX)
#define GL_GLEXT_LEGACY // exclude modern definitions
#include <OpenGL/OpenGL.h> #include <OpenGL/OpenGL.h>
#else #else
#include <GL/gl.h> #include <GL/gl.h>