older openal drivers miss alcGetString, several win32 people seem to have such an...
authorMatthias Braun <matze@braunis.de>
Tue, 16 Jan 2007 15:45:35 +0000 (15:45 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 16 Jan 2007 15:45:35 +0000 (15:45 +0000)
SVN-Revision: 4581

src/audio/sound_manager.cpp

index b3eb731..fd3320e 100644 (file)
 #include "log.hpp"
 #include "timer.hpp"
 
+#ifndef DEBUG
+  /** Older openal versions often miss this function and it isn't that vital for
+   * supertux...
+   */
+#ifdef alcGetString
+#undef alcGetString
+#endif
+#define alcGetString(x,y) ""
+#endif
+
 SoundManager* sound_manager = 0;
 
 SoundManager::SoundManager()