From 0713c1e53b1dcca29097968c2d192f4fbe9f8120 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 5 Apr 2015 15:52:37 -0400 Subject: [PATCH] Patched to compile on Android when audio subsystem is disabled (thanks, Jonas!) Fixes Bugzilla #2797. --- src/video/android/SDL_androidevents.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/video/android/SDL_androidevents.c b/src/video/android/SDL_androidevents.c index 2662d1b3d..ef7d55648 100644 --- a/src/video/android/SDL_androidevents.c +++ b/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()