mirror of https://github.com/encounter/SDL.git
minor build fixes.
This commit is contained in:
parent
97fefd0509
commit
ceee7def84
|
@ -121,6 +121,7 @@ static void SDL_GenerateAssertionReport(void)
|
||||||
|
|
||||||
|
|
||||||
#if defined(__WATCOMC__)
|
#if defined(__WATCOMC__)
|
||||||
|
static void SDL_ExitProcess (int);
|
||||||
#pragma aux SDL_ExitProcess aborts;
|
#pragma aux SDL_ExitProcess aborts;
|
||||||
#endif
|
#endif
|
||||||
static SDL_NORETURN void SDL_ExitProcess(int exitcode)
|
static SDL_NORETURN void SDL_ExitProcess(int exitcode)
|
||||||
|
@ -148,6 +149,7 @@ static SDL_NORETURN void SDL_ExitProcess(int exitcode)
|
||||||
|
|
||||||
|
|
||||||
#if defined(__WATCOMC__)
|
#if defined(__WATCOMC__)
|
||||||
|
static void SDL_AbortAssertion (void);
|
||||||
#pragma aux SDL_AbortAssertion aborts;
|
#pragma aux SDL_AbortAssertion aborts;
|
||||||
#endif
|
#endif
|
||||||
static SDL_NORETURN void SDL_AbortAssertion(void)
|
static SDL_NORETURN void SDL_AbortAssertion(void)
|
||||||
|
|
|
@ -251,12 +251,12 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
|
||||||
HMODULE hmodule;
|
HMODULE hmodule;
|
||||||
PFN retval = NULL;
|
PFN retval = NULL;
|
||||||
char error[256];
|
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) {
|
if (DosQueryProcAddr(hmodule, 0, sym, &retval) != NO_ERROR) {
|
||||||
DosFreeModule(hmodule);
|
DosFreeModule(hmodule);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (void *) retval;
|
return (void *)retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue