summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-12-24 20:39:35 +0100
committerCarl Hetherington <cth@carlh.net>2020-12-24 20:39:35 +0100
commitc0cbc3965dfa967ee4e23d618fdad9e034168f67 (patch)
tree26f67aa0386c3237c430cd41444962ce5d969f3c
parenta13d678b5a0f4cc7b0e4585a3429f774dddbf110 (diff)
fixup! Hide macos GL deprecation.
-rw-r--r--src/wx/system_information_dialog.cc1
-rw-r--r--wscript2
2 files changed, 1 insertions, 2 deletions
diff --git a/src/wx/system_information_dialog.cc b/src/wx/system_information_dialog.cc
index c1b904bd7..2d9044f6b 100644
--- a/src/wx/system_information_dialog.cc
+++ b/src/wx/system_information_dialog.cc
@@ -24,7 +24,6 @@
#include "film_viewer.h"
#ifdef DCPOMATIC_OSX
-#define GL_SILENCE_DEPRECATION 1
#include <OpenGL/glu.h>
#include <OpenGL/glext.h>
#else
diff --git a/wscript b/wscript
index b73474719..ad1e137f2 100644
--- a/wscript
+++ b/wscript
@@ -199,7 +199,7 @@ def configure(conf):
# OSX
if conf.env.TARGET_OSX:
- conf.env.append_value('CXXFLAGS', ['-DDCPOMATIC_OSX'])
+ conf.env.append_value('CXXFLAGS', ['-DDCPOMATIC_OSX', '-DGL_SILENCE_DEPRECATION'])
conf.env.append_value('LINKFLAGS', '-headerpad_max_install_names')
#