Fix some warning messages.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5962 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-07-17 15:09:39 +00:00
parent 626a053b36
commit 89a1be8e8c

View file

@ -53,10 +53,12 @@ void ModBrush_LoadGLStuff(void *ctx, void *data, size_t a, size_t b); //data ===
#define GLclampd GLclampf #define GLclampd GLclampf
#define GLdouble GLfloat #define GLdouble GLfloat
#define GL_NONE 0 #define GL_NONE 0
#elif defined(__MACOSX__) #elif defined(__APPLE__) || defined(__MACOSX__)
//apple, you suck. #include <OpenGL/OpenGLAvailability.h>
#include <AGL/agl.h> #if defined(OPENGL_DEPRECATED) && !defined(GL_SILENCE_DEPRECATION)
#elif defined(__APPLE__) #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 <OpenGL/gl.h> //tuna says use this. #include <OpenGL/gl.h> //tuna says use this.
//apple really do suck. //apple really do suck.
#elif defined(NACL) || defined(FTE_TARGET_WEB) #elif defined(NACL) || defined(FTE_TARGET_WEB)