From a0687a9ccb87893fb32b57b59da298c4dbda5c19 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 21 Feb 2018 09:40:47 -0800 Subject: [PATCH] Fixed bug 4034 - Don't include _DllMainCRTStartup() if SDL_STATIC_LIB is defined. --- src/SDL.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SDL.c b/src/SDL.c index 0494a165e..0e552791f 100644 --- a/src/SDL.c +++ b/src/SDL.c @@ -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__ */