diff --git a/engine/gl/glquake.h b/engine/gl/glquake.h index 61aa3a01d..2c04f59c9 100644 --- a/engine/gl/glquake.h +++ b/engine/gl/glquake.h @@ -53,10 +53,12 @@ void ModBrush_LoadGLStuff(void *ctx, void *data, size_t a, size_t b); //data === #define GLclampd GLclampf #define GLdouble GLfloat #define GL_NONE 0 - #elif defined(__MACOSX__) - //apple, you suck. - #include - #elif defined(__APPLE__) + #elif defined(__APPLE__) || defined(__MACOSX__) + #include + #if defined(OPENGL_DEPRECATED) && !defined(GL_SILENCE_DEPRECATION) + #undef OPENGL_DEPRECATED + #define OPENGL_DEPRECATED(from, to) API_DEPRECATED("Apple is deprecated. (Define GL_SILENCE_DEPRECATION to silence these warnings)", macos(from, to)) + #endif #include //tuna says use this. //apple really do suck. #elif defined(NACL) || defined(FTE_TARGET_WEB)