Updated source to match SDL function prototype style

This commit is contained in:
Sam Lantinga
2023-05-23 11:29:41 -07:00
parent 737aa881fa
commit ddbdd73258
173 changed files with 481 additions and 942 deletions

View File

@@ -537,15 +537,13 @@ int SDL_GetVersion(SDL_version *ver)
}
/* Get the library source revision */
const char *
SDL_GetRevision(void)
const char *SDL_GetRevision(void)
{
return SDL_REVISION;
}
/* Get the name of the platform */
const char *
SDL_GetPlatform(void)
const char *SDL_GetPlatform(void)
{
#ifdef __AIX__
return "AIX";
@@ -616,8 +614,7 @@ SDL_GetPlatform(void)
#endif
}
SDL_bool
SDL_IsTablet(void)
SDL_bool SDL_IsTablet(void)
{
#ifdef __ANDROID__
extern SDL_bool SDL_IsAndroidTablet(void);
@@ -635,9 +632,7 @@ SDL_IsTablet(void)
#if (!defined(HAVE_LIBC) || defined(__WATCOMC__)) && !defined(SDL_STATIC_LIB)
/* Need to include DllMain() on Watcom C for some reason.. */
BOOL APIENTRY
_DllMainCRTStartup(HANDLE hModule,
DWORD ul_reason_for_call, LPVOID lpReserved)
BOOL APIENTRY _DllMainCRTStartup(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH: