summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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