[Commits] SDL: Fixed bug 4091 - Undefined references to Android audio func...

libsdl.org revision control commits-owner at libsdl.org
Sat Feb 24 08:58:25 PST 2018


details:   https://hg.libsdl.org/SDL/rev/0a7f9aec16a6
changeset: 11900:0a7f9aec16a6
user:      Sam Lantinga <slouken at libsdl.org>
date:      Sat Feb 24 08:58:22 2018 -0800
description:
Fixed bug 4091 - Undefined references to Android audio functions when SDL_AUDIO_DISABLED is on

Manuel Sabogal

If SDL is compiled with the Audio subsystem disabled there are some undefined references to the functions ANDROIDAUDIO_ResumeDevices and ANDROIDAUDIO_PauseDevices in the file src/video/android/SDL_androidevents.c.

diffstat:

 src/video/android/SDL_androidevents.c |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r b74dda4daaa1 -r 0a7f9aec16a6 src/video/android/SDL_androidevents.c
--- a/src/video/android/SDL_androidevents.c	Sat Feb 24 08:42:04 2018 -0800
+++ b/src/video/android/SDL_androidevents.c	Sat Feb 24 08:58:22 2018 -0800
@@ -29,10 +29,15 @@
 #include "SDL_events.h"
 #include "SDL_androidwindow.h"
 
+#if !SDL_AUDIO_DISABLED
 /* Can't include sysaudio "../../audio/android/SDL_androidaudio.h"
  * because of THIS redefinition */
 extern void ANDROIDAUDIO_ResumeDevices(void);
 extern void ANDROIDAUDIO_PauseDevices(void);
+#else
+static void ANDROIDAUDIO_ResumeDevices(void) {}
+static void ANDROIDAUDIO_PauseDevices(void) {}
+#endif
 
 static void 
 android_egl_context_restore() 


More information about the commits mailing list