summaryrefslogtreecommitdiff
path: root/FL/gl.h
diff options
context:
space:
mode:
authorRob McDonald <rob.a.mcdonald@gmail.com>2023-03-15 10:45:53 -0700
committerAlbrecht Schlosser <albrechts.fltk@online.de>2023-03-15 23:15:32 +0100
commit09b7b4719d2d3211e14203606d824e768611ff73 (patch)
treea4aed777156eda9f3a66ab4bd526fb61d9b48bf7 /FL/gl.h
parent0f41797b7ab0ee010e31659f60cafd38affac8f5 (diff)
Protect GL_SILENCE_DEPRECATION from re-definition.
Diffstat (limited to 'FL/gl.h')
-rw-r--r--FL/gl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/FL/gl.h b/FL/gl.h
index e47c66e3c..7b5e9c4d7 100644
--- a/FL/gl.h
+++ b/FL/gl.h
@@ -55,7 +55,9 @@
# endif
# ifdef __APPLE__ // PORTME: OpenGL path abstraction
-# define GL_SILENCE_DEPRECATION 1
+# ifndef GL_SILENCE_DEPRECATION
+# define GL_SILENCE_DEPRECATION 1
+# endif
# if !defined(__gl3_h_) // make sure OpenGL/gl3.h was not included before
# include <OpenGL/gl.h>
# endif