From 61827c6d1a277d2996b618878c16a129639c4c9f Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 20 Jan 2019 12:02:12 -0800 Subject: [PATCH] Fixed compiler warning on Android --- src/video/android/SDL_androidevents.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/video/android/SDL_androidevents.c b/src/video/android/SDL_androidevents.c index a51fd218ade18..a021e2b13353e 100644 --- a/src/video/android/SDL_androidevents.c +++ b/src/video/android/SDL_androidevents.c @@ -49,12 +49,14 @@ static void openslES_ResumeDevices(void) {} static void openslES_PauseDevices(void) {} #endif +#if SDL_ANDROID_BLOCK_ON_PAUSE /* Number of 'type' events in the event queue */ static int SDL_NumberOfEvents(Uint32 type) { return SDL_PeepEvents(NULL, 0, SDL_PEEKEVENT, type, type); } +#endif /* SDL_ANDROID_BLOCK_ON_PAUSE */ static void android_egl_context_restore(SDL_Window *window) @@ -186,7 +188,7 @@ Android_PumpEvents(_THIS) } } -#endif +#endif /* SDL_ANDROID_BLOCK_ON_PAUSE */ #endif /* SDL_VIDEO_DRIVER_ANDROID */