summaryrefslogtreecommitdiff
path: root/src/client/shader.cpp
diff options
context:
space:
mode:
authorDavid CARLIER <devnexen@gmail.com>2020-09-09 18:12:03 +0100
committerGitHub <noreply@github.com>2020-09-09 19:12:03 +0200
commit62913b872ea1b21a5aada55ed323476fbcea61dc (patch)
tree6815ec0d5d242459486aeb5a406ce955eb85b09e /src/client/shader.cpp
parent0d128ab344e3d04d2b30dbd5e047f4ac700013b7 (diff)
downloadminetest-62913b872ea1b21a5aada55ed323476fbcea61dc.tar.gz
minetest-62913b872ea1b21a5aada55ed323476fbcea61dc.tar.bz2
minetest-62913b872ea1b21a5aada55ed323476fbcea61dc.zip
Darwin platform build fix (#10376)
the event header seemingly being generic with libevent thus renaming it. openal and opengl are deprecated on newer mac os releases thus suppressing the build warnings.
Diffstat (limited to 'src/client/shader.cpp')
-rw-r--r--src/client/shader.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/shader.cpp b/src/client/shader.cpp
index 0aba7b118..fc0a72319 100644
--- a/src/client/shader.cpp
+++ b/src/client/shader.cpp
@@ -45,7 +45,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <GLES2/gl2.h>
#endif
#else
+#ifndef __APPLE__
#include <GL/gl.h>
+#else
+#define GL_SILENCE_DEPRECATION
+#include <OpenGL/gl.h>
+#endif
#endif
/*