Commit ceee7def8474e0a8940e31ef8ea900298ab7ce49

Ozkan Sezer 2019-07-31T00:05:28

minor build fixes.

diff --git a/src/SDL_assert.c b/src/SDL_assert.c
index bfce5f1..7ded637 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 72708e6..b5497b2 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