[Commits] SDL: Fixed bug 4034 - Don't include _DllMainCRTStartup() if SDL_...

libsdl.org revision control commits-owner at libsdl.org
Wed Feb 21 09:40:50 PST 2018


details:   https://hg.libsdl.org/SDL/rev/e6fc3ef41ffd
changeset: 11885:e6fc3ef41ffd
user:      Sam Lantinga <slouken at libsdl.org>
date:      Wed Feb 21 09:40:47 2018 -0800
description:
Fixed bug 4034 - Don't include _DllMainCRTStartup() if SDL_STATIC_LIB is defined.

diffstat:

 src/SDL.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 728f670288e4 -r e6fc3ef41ffd src/SDL.c
--- a/src/SDL.c	Tue Feb 20 09:04:31 2018 -0800
+++ b/src/SDL.c	Wed Feb 21 09:40:47 2018 -0800
@@ -453,7 +453,7 @@
 
 #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 @@
     }
     return TRUE;
 }
-#endif /* building DLL with Watcom C */
+#endif /* Building DLL */
 
 #endif /* __WIN32__ */
 


More information about the commits mailing list