mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-16 06:00:31 +00:00
Fix #15500: deprecation warning on Android for slCreateEngine
This commit is contained in:
committed by
Ryan C. Gordon
parent
4eb221881a
commit
e8127a9a11
@@ -33,6 +33,11 @@
|
||||
#include <SLES/OpenSLES_Android.h>
|
||||
#include <android/log.h>
|
||||
|
||||
// OpenSL ES is deprecated, but we still support it for now.
|
||||
#ifdef HAVE_GCC_DIAGNOSTIC_PRAGMA
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
#endif // HAVE_GCC_DIAGNOSTIC_PRAGMA
|
||||
|
||||
#define NUM_BUFFERS 2 // -- Don't lower this!
|
||||
|
||||
@@ -805,4 +810,8 @@ void OPENSLES_PauseDevices(void)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HAVE_GCC_DIAGNOSTIC_PRAGMA
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // HAVE_GCC_DIAGNOSTIC_PRAGMA
|
||||
|
||||
#endif // SDL_AUDIO_DRIVER_OPENSLES
|
||||
|
||||
Reference in New Issue
Block a user