]> git.jsancho.org Git - lugaru.git/commitdiff
Fix OpenGL and OpenAL header paths for macOS
authorNeal Gompa <ngompa13@gmail.com>
Sun, 11 Dec 2016 17:36:17 +0000 (12:36 -0500)
committerNeal Gompa <ngompa13@gmail.com>
Sun, 11 Dec 2016 18:23:55 +0000 (13:23 -0500)
Source/Audio/openal_wrapper.hpp
Source/Graphic/gamegl.hpp

index cea479711f1fd1f3d51e317821a1c62ddee58eef..300bec261ece531fcc89d0f9864c6db221ac2aeb 100644 (file)
@@ -24,8 +24,14 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #include "MacCompatibility.hpp"
 #include "Math/Quaternions.hpp"
 
-#include <AL/al.h>
-#include <AL/alc.h>
+#ifdef __APPLE__
+  #include <OpenAL/al.h>
+  #include <OpenAL/alc.h>
+#else
+  #include <AL/al.h>
+  #include <AL/alc.h>
+#endif
+
 #include <ogg/ogg.h>
 #include <vorbis/vorbisfile.h>
 
index 0b5f69380d50b90d2f9a0b77c0784574ebf7325d..f9c6d2b0faf7d419bacd15b9a6d7d979afbf3621 100644 (file)
@@ -38,9 +38,15 @@ along with Lugaru.  If not, see <http://www.gnu.org/licenses/>.
 #endif
 
 #define GL_GLEXT_PROTOTYPES 1
-#include <GL/gl.h>
-#include <GL/glu.h>
-#include <GL/glext.h>
+#ifdef __APPLE__
+  #include <OpenGL/gl.h>
+  #include <OpenGL/glu.h>
+  #include <OpenGL/glext.h>
+#else
+  #include <GL/gl.h>
+  #include <GL/glu.h>
+  #include <GL/glext.h>
+#endif
 
 using namespace std;