minor build fixes.
authorOzkan Sezer <sezeroz@gmail.com>
Wed, 31 Jul 2019 00:05:28 +0300
changeset 129618dbdfc918c7a
parent 12959 e7ba650a643a
child 12962 a1a5dd21bc18
minor build fixes.
src/SDL_assert.c
src/dynapi/SDL_dynapi.c
     1.1 --- a/src/SDL_assert.c	Tue Jul 30 11:00:00 2019 -0700
     1.2 +++ b/src/SDL_assert.c	Wed Jul 31 00:05:28 2019 +0300
     1.3 @@ -121,6 +121,7 @@
     1.4  
     1.5  
     1.6  #if defined(__WATCOMC__)
     1.7 +static void SDL_ExitProcess (int);
     1.8  #pragma aux SDL_ExitProcess aborts;
     1.9  #endif
    1.10  static SDL_NORETURN void SDL_ExitProcess(int exitcode)
    1.11 @@ -148,6 +149,7 @@
    1.12  
    1.13  
    1.14  #if defined(__WATCOMC__)
    1.15 +static void SDL_AbortAssertion (void);
    1.16  #pragma aux SDL_AbortAssertion aborts;
    1.17  #endif
    1.18  static SDL_NORETURN void SDL_AbortAssertion(void)
     2.1 --- a/src/dynapi/SDL_dynapi.c	Tue Jul 30 11:00:00 2019 -0700
     2.2 +++ b/src/dynapi/SDL_dynapi.c	Wed Jul 31 00:05:28 2019 +0300
     2.3 @@ -251,12 +251,12 @@
     2.4      HMODULE hmodule;
     2.5      PFN retval = NULL;
     2.6      char error[256];
     2.7 -    if (DosLoadModule(&error, sizeof(error), fname, &hmodule) == NO_ERROR) {
     2.8 +    if (DosLoadModule(error, sizeof(error), fname, &hmodule) == NO_ERROR) {
     2.9          if (DosQueryProcAddr(hmodule, 0, sym, &retval) != NO_ERROR) {
    2.10              DosFreeModule(hmodule);
    2.11          }
    2.12      }
    2.13 -    return (void *) retval;
    2.14 +    return (void *)retval;
    2.15  }
    2.16  
    2.17  #else