diff --git a/src/Wt/WServerGLWidget.C b/src/Wt/WServerGLWidget.C index df7daf9ec..e9285c44a 100644 --- a/src/Wt/WServerGLWidget.C +++ b/src/Wt/WServerGLWidget.C @@ -47,7 +47,7 @@ typedef GLXContext (*glXCreateContextAttribsARBProc)(Display*, GLXFBConfig, GLXC #include #include #include -#include +#include #endif namespace { @@ -254,9 +254,11 @@ WServerGLWidgetImpl::WServerGLWidgetImpl(bool antialiasingEnabled): { CGLPixelFormatAttribute attributes[4] = { kCGLPFAAccelerated, // no software rendering +#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070 kCGLPFAOpenGLProfile, // core profile with the version stated below (CGLPixelFormatAttribute) kCGLOGLPVersion_Legacy, // (CGLPixelFormatAttribute) kCGLOGLPVersion_3_2_Core, +#endif (CGLPixelFormatAttribute) 0 }; CGLPixelFormatObj pix;