diff --git a/src/SDL_assert.c b/src/SDL_assert.c index bfce5f1f7..7ded637b6 100644 --- a/src/SDL_assert.c +++ b/src/SDL_assert.c @@ -121,6 +121,7 @@ static void SDL_GenerateAssertionReport(void) #if defined(__WATCOMC__) +static void SDL_ExitProcess (int); #pragma aux SDL_ExitProcess aborts; #endif static SDL_NORETURN void SDL_ExitProcess(int exitcode) @@ -148,6 +149,7 @@ static SDL_NORETURN void SDL_ExitProcess(int exitcode) #if defined(__WATCOMC__) +static void SDL_AbortAssertion (void); #pragma aux SDL_AbortAssertion aborts; #endif static SDL_NORETURN void SDL_AbortAssertion(void) diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c index 72708e606..b5497b2bb 100644 --- a/src/dynapi/SDL_dynapi.c +++ b/src/dynapi/SDL_dynapi.c @@ -251,12 +251,12 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym) HMODULE hmodule; PFN retval = NULL; char error[256]; - if (DosLoadModule(&error, sizeof(error), fname, &hmodule) == NO_ERROR) { + if (DosLoadModule(error, sizeof(error), fname, &hmodule) == NO_ERROR) { if (DosQueryProcAddr(hmodule, 0, sym, &retval) != NO_ERROR) { DosFreeModule(hmodule); } } - return (void *) retval; + return (void *)retval; } #else