Skip to content

Commit

Permalink
include: Always declare SDL_GDKSuspendComplete.
Browse files Browse the repository at this point in the history
This is always defined in the symbol table and the function safely does nothing
on non-GDK targets, so treat it like any other SDL_system function.
  • Loading branch information
flibitijibibo committed Dec 20, 2024
1 parent 232c297 commit f758037
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/SDL3/SDL_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -567,17 +567,16 @@ extern SDL_DECLSPEC void SDLCALL SDL_UnregisterApp(void);

#endif /* defined(SDL_PLATFORM_WINDOWS) */

#ifdef SDL_PLATFORM_GDK

/**
* Callback from the application to let the suspend continue.
*
* This function is only needed for Xbox GDK support; all other platforms will
* do nothing and set an "unsupported" error message.
*
* \since This function is available since SDL 3.1.3.
*/
extern SDL_DECLSPEC void SDLCALL SDL_GDKSuspendComplete(void);

#endif /* SDL_PLATFORM_GDK */

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit f758037

Please sign in to comment.