From 89a1be8e8ccc73bd8ce99e3676b966663c574265 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 17 Jul 2021 15:09:39 +0000 Subject: [PATCH] Fix some warning messages. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5962 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/glquake.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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)