Explorar o código

Fix unused static variable warning on OS X

- Prevent some static variables from getting declared
  when including vorbis.h since we don't need them and
  fortunately they provide a mechanism to prevent this.
Nur Monson %!s(int64=12) %!d(string=hai) anos
pai
achega
483b6adf91
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      Core/Contents/Source/PolySound.cpp

+ 2 - 0
Core/Contents/Source/PolySound.cpp

@@ -21,7 +21,9 @@
 */
 */
 
 
 #include "PolySound.h"
 #include "PolySound.h"
+#define OV_EXCLUDE_STATIC_CALLBACKS
 #include <vorbis/vorbisfile.h>
 #include <vorbis/vorbisfile.h>
+#undef OV_EXCLUDE_STATIC_CALLBACKS
 #include "PolyString.h"
 #include "PolyString.h"
 #include "PolyLogger.h"
 #include "PolyLogger.h"