]> git.tdb.fi Git - libs/al.git/commitdiff
Some compilation fixes for Windows too
authorMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 11:08:27 +0000 (13:08 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 11:08:27 +0000 (13:08 +0200)
source/al.h
source/oggdecoder.cpp

index 6310877ac65efb035947e7e8a5380452f85d98c9..70ecc77d1a3940db357871cbf79302e852ae8a2b 100644 (file)
@@ -4,6 +4,9 @@
 #ifdef __APPLE__
 #include <OpenAL/al.h>
 #else
+#ifndef TARGET_OS_MAC
+#define TARGET_OS_MAC 0
+#endif
 #include <AL/al.h>
 #endif
 
index 5462b79bb4d8c6c0cdd0c3871cf9e91d1bafdb81..efea1f6200874542438e6187b50294437f395e42 100644 (file)
@@ -1,4 +1,7 @@
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-variable"
 #include <vorbis/vorbisfile.h>
+#pragma GCC diagnostic pop
 #include <msp/strings/format.h>
 #include "oggdecoder.h"