minor build fixes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
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