aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-04-26 11:56:07 +0200
committerAndre Weissflog <floooh@gmail.com>2019-04-26 11:56:07 +0200
commit339bf9b4833361d7b47549b98c37c0a6a2b7cb6c (patch)
treeb35614ef821cb6df25d8cece9750972b821119cc
parent5646166498d9e1cd9c8d1d6ac5f68eaa0d0bef9c (diff)
sokol_app.h: define the GL_SILENCE_DEPRECATION symbol inline instead of in build system
-rw-r--r--sokol_app.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h
index e9f23d5f..f4a207b3 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -938,6 +938,9 @@ _SOKOL_PRIVATE void _sapp_frame(void) {
#import <Metal/Metal.h>
#import <MetalKit/MetalKit.h>
#elif defined(SOKOL_GLCORE33)
+#ifndef GL_SILENCE_DEPRECATION
+#define GL_SILENCE_DEPRECATION
+#endif
#include <Cocoa/Cocoa.h>
#include <OpenGL/gl3.h>
#endif