diff --git a/src/video/cocoa/cocoa_ogl.mm b/src/video/cocoa/cocoa_ogl.mm index 96c3ea1bfe..81222d2abf 100644 --- a/src/video/cocoa/cocoa_ogl.mm +++ b/src/video/cocoa/cocoa_ogl.mm @@ -12,6 +12,8 @@ #include "../../stdafx.h" #include "../../os/macosx/macos.h" +#define GL_SILENCE_DEPRECATION + #define Rect OTTDRect #define Point OTTDPoint #import diff --git a/src/video/opengl.cpp b/src/video/opengl.cpp index 6e37db03ba..8ac12b959a 100644 --- a/src/video/opengl.cpp +++ b/src/video/opengl.cpp @@ -22,6 +22,7 @@ #define GL_GLEXT_PROTOTYPES #if defined(__APPLE__) +# define GL_SILENCE_DEPRECATION # include #else # include