Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug 4034 - Don't include _DllMainCRTStartup() if SDL_STATIC_LIB…
… is defined.
  • Loading branch information
slouken committed Feb 21, 2018
1 parent c00858b commit a0687a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDL.c
Expand Up @@ -453,7 +453,7 @@ SDL_GetPlatform()

#if defined(__WIN32__)

#if !defined(HAVE_LIBC) || (defined(__WATCOMC__) && defined(BUILD_DLL))
#if (!defined(HAVE_LIBC) || defined(__WATCOMC__)) && !defined(SDL_STATIC_LIB)
/* Need to include DllMain() on Watcom C for some reason.. */

BOOL APIENTRY
Expand All @@ -469,7 +469,7 @@ _DllMainCRTStartup(HANDLE hModule,
}
return TRUE;
}
#endif /* building DLL with Watcom C */
#endif /* Building DLL */

#endif /* __WIN32__ */

Expand Down

0 comments on commit a0687a9

Please sign in to comment.