Fix "Compilation warning: 'NSOpenGLContext' on macOS 11" !#646)

This commit is contained in:
ManoloFLTK
2023-01-11 09:32:31 +01:00
parent f576faf2a6
commit 8235967dcc
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -55,6 +55,7 @@
# endif
# ifdef __APPLE__ // PORTME: OpenGL path abstraction
# define GL_SILENCE_DEPRECATION 1
# if !defined(__gl3_h_) // make sure OpenGL/gl3.h was not included before
# include <OpenGL/gl.h>
# endif
+3
View File
@@ -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__ */