Browse Source

Patched to compile on Android when audio subsystem is disabled (thanks, Jonas!)

Fixes Bugzilla #2797.
Ryan C. Gordon 10 years ago
parent
commit
0713c1e53b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/video/android/SDL_androidevents.c

+ 6 - 0
src/video/android/SDL_androidevents.c

@@ -32,8 +32,14 @@
 
 void android_egl_context_backup();
 void android_egl_context_restore();
+
+#if SDL_AUDIO_DRIVER_ANDROID
 void AndroidAUD_ResumeDevices(void);
 void AndroidAUD_PauseDevices(void);
+#else
+static void AndroidAUD_ResumeDevices(void) {}
+static void AndroidAUD_PauseDevices(void) {}
+#endif
 
 void 
 android_egl_context_restore()