Fixed bug 4034 - Don't include _DllMainCRTStartup() if SDL_STATIC_LIB is defined.

This commit is contained in:
Sam Lantinga 2018-02-21 09:40:47 -08:00
parent c00858bfb1
commit a0687a9ccb
1 changed files with 2 additions and 2 deletions

View File

@ -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
@ -469,7 +469,7 @@ _DllMainCRTStartup(HANDLE hModule,
}
return TRUE;
}
#endif /* building DLL with Watcom C */
#endif /* Building DLL */
#endif /* __WIN32__ */