Browse Source

Add missing check for AO_ENABLED in audio_driver_ao.cpp

Anton Yabchinskiy 10 years ago
parent
commit
c29239a6f9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      drivers/ao/audio_driver_ao.cpp

+ 4 - 0
drivers/ao/audio_driver_ao.cpp

@@ -29,6 +29,8 @@
 /*************************************************************************/
 #include "audio_driver_ao.h"
 
+#ifdef AO_ENABLED
+
 #include "globals.h"
 #include "os/os.h"
 
@@ -155,3 +157,5 @@ AudioDriverAO::AudioDriverAO() {
 AudioDriverAO::~AudioDriverAO() {
 	ao_shutdown();
 };
+
+#endif