From d48013a322670efdf47ddc1bf95baf70ccf3852c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 26 May 2020 18:28:59 +0200 Subject: [PATCH] Disable OpenGL functions deprecation warnings in wxOSX Don't generate dozens of deprecation warnings (one for each OpenGL function used in the code) for any program using wxGLCanvas being built using macOS 10.14 or later SDK. Closes https://github.com/wxWidgets/wxWidgets/pull/1875 --- include/wx/osx/glcanvas.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/osx/glcanvas.h b/include/wx/osx/glcanvas.h index 7f12f246fd..34af46fdd5 100644 --- a/include/wx/osx/glcanvas.h +++ b/include/wx/osx/glcanvas.h @@ -16,6 +16,9 @@ #import #define wxUSE_OPENGL_EMULATION 1 #else +#ifndef GL_SILENCE_DEPRECATION + #define GL_SILENCE_DEPRECATION +#endif #include #endif