From f4a0bc02d54d0c3c5e2c0269fd36dd76ff8ba387 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 17 Jan 2024 15:55:49 -0800 Subject: [PATCH] Re-added prototypes for stub API functions --- src/video/SDL_video_unsupported.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/video/SDL_video_unsupported.c b/src/video/SDL_video_unsupported.c index e070f40ee0..ce8a808fae 100644 --- a/src/video/SDL_video_unsupported.c +++ b/src/video/SDL_video_unsupported.c @@ -42,6 +42,7 @@ void SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata) #endif /* __WIN32__ || __GDK__ */ +DECLSPEC SDL_bool SDLCALL SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex); SDL_bool SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int *outputIndex) { (void)displayID; @@ -51,6 +52,7 @@ SDL_bool SDL_DXGIGetOutputInfo(SDL_DisplayID displayID, int *adapterIndex, int * return SDL_FALSE; } +DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID); int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID) { (void)displayID; @@ -59,6 +61,7 @@ int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID) #elif defined(__XBOXONE__) || defined(__XBOXSERIES__) +DECLSPEC int SDLCALL SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID); int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID) { (void)displayID; @@ -69,6 +72,7 @@ int SDL_Direct3D9GetAdapterIndex(SDL_DisplayID displayID) #ifndef __GDK__ +DECLSPEC int SDLCALL SDL_GDKGetTaskQueue(void *outTaskQueue); int SDL_GDKGetTaskQueue(void *outTaskQueue) { (void)outTaskQueue; @@ -79,6 +83,7 @@ int SDL_GDKGetTaskQueue(void *outTaskQueue) #ifndef SDL_VIDEO_DRIVER_UIKIT +DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(void); void SDL_OnApplicationDidChangeStatusBarOrientation(void) { SDL_Unsupported(); @@ -88,6 +93,7 @@ void SDL_OnApplicationDidChangeStatusBarOrientation(void) #ifndef SDL_VIDEO_DRIVER_UIKIT +DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam); int SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*callback)(void *), void *callbackParam) { (void)window; @@ -97,6 +103,7 @@ int SDL_iPhoneSetAnimationCallback(SDL_Window *window, int interval, void (*call return SDL_Unsupported(); } +DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled); void SDL_iPhoneSetEventPump(SDL_bool enabled) { (void)enabled;