Skip to content

Commit

Permalink
GLUI: Window: avoid GL deprecation warnings on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Westerfeld <[email protected]>
  • Loading branch information
swesterfeld committed Jun 25, 2024
1 parent cbbf015 commit e3509a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion glui/smwindow.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl-2.1.html

#include "smutils.hh"

#ifdef SM_OS_MACOS
#define GL_SILENCE_DEPRECATION 1
#endif

#include "pugl/gl.h"
#if !__APPLE__
#include "GL/glext.h"
Expand All @@ -11,7 +17,6 @@
#include "smconfig.hh"
#include "smshortcut.hh"
#include "smeventloop.hh"
#include "smutils.hh"
#include "pugl/cairo_gl.h"
#include <map>
#include <math.h>
Expand Down

0 comments on commit e3509a4

Please sign in to comment.