diff options
author | David CARLIER <devnexen@gmail.com> | 2020-09-09 18:12:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 19:12:03 +0200 |
commit | 62913b872ea1b21a5aada55ed323476fbcea61dc (patch) | |
tree | 6815ec0d5d242459486aeb5a406ce955eb85b09e /src/client/shader.cpp | |
parent | 0d128ab344e3d04d2b30dbd5e047f4ac700013b7 (diff) | |
download | minetest-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.cpp | 5 |
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 /* |