Patched to compile on Android when audio subsystem is disabled (thanks, Jonas!)
authorRyan C. Gordon <icculus@icculus.org>
Sun, 05 Apr 2015 15:52:37 -0400
changeset 9455 b452e37e26d9
parent 9454 bdc0c1dda0a4
child 9456 2d6ec08030a0
Patched to compile on Android when audio subsystem is disabled (thanks, Jonas!) Fixes Bugzilla #2797.
src/video/android/SDL_androidevents.c
--- a/src/video/android/SDL_androidevents.c	Wed Apr 01 19:18:56 2015 -0700
+++ b/src/video/android/SDL_androidevents.c	Sun Apr 05 15:52:37 2015 -0400
@@ -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()