summaryrefslogtreecommitdiff
path: root/FL/mac.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-11 09:32:31 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-01-11 09:32:31 +0100
commit8235967dcca61fe867be15bda07ef1ba8131a0e9 (patch)
treeacf3c740a4d85729fde2c3c805c4c44071a2aca2 /FL/mac.H
parentf576faf2a6cf2aff8e22264abf506accae009dc3 (diff)
Fix "Compilation warning: 'NSOpenGLContext' on macOS 11" !#646)
Diffstat (limited to 'FL/mac.H')
-rw-r--r--FL/mac.H3
1 files changed, 3 insertions, 0 deletions
diff --git a/FL/mac.H b/FL/mac.H
index 015b9ddda..f356730ca 100644
--- a/FL/mac.H
+++ b/FL/mac.H
@@ -25,6 +25,9 @@
#ifdef __OBJC__
@class NSOpenGLContext;
+# ifndef GL_SILENCE_DEPRECATION
+# define GL_SILENCE_DEPRECATION 1
+# endif
#elif defined(__cplusplus)
class NSOpenGLContext;
#endif /* __OBJC__ */