mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58:12 +00:00
ci: Patched to compile on Android.
This commit is contained in:
@@ -66,7 +66,7 @@ static bool AAUDIO_LoadFunctions(AAUDIO_Data *data)
|
|||||||
#define SDL_PROC(ret, func, params) \
|
#define SDL_PROC(ret, func, params) \
|
||||||
do { \
|
do { \
|
||||||
data->func = (ret (*) params)SDL_LoadFunction(data->handle, #func); \
|
data->func = (ret (*) params)SDL_LoadFunction(data->handle, #func); \
|
||||||
if (!data->func) { \
|
if (!data->func) { \
|
||||||
return SDL_SetError("Couldn't load AAUDIO function %s: %s", #func, SDL_GetError()); \
|
return SDL_SetError("Couldn't load AAUDIO function %s: %s", #func, SDL_GetError()); \
|
||||||
} \
|
} \
|
||||||
} while (0);
|
} while (0);
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SDL_PROC_OPTIONAL(ret, func, params)
|
#ifndef SDL_PROC_OPTIONAL
|
||||||
#define SDL_PROC_OPTIONAL(ret, func, params) SDL_PROC(ret, func, params)
|
#define SDL_PROC_OPTIONAL(ret, func, params) SDL_PROC(ret, func, params)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user