1
1

init: Only add DllMain if we create a shared library

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Andreas Schneider 2018-10-09 10:12:12 +02:00
родитель 275f73125d
Коммит f747e46f33

Просмотреть файл

@ -224,7 +224,7 @@ int ssh_finalize(void) {
#ifdef _WIN32
#ifdef _MSC_VER
#if defined(_MSC_VER) && !defined(LIBSSH_STATIC)
/* Library constructor and destructor */
BOOL WINAPI DllMain(HINSTANCE hinstDLL,
DWORD fdwReason,
@ -249,7 +249,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,
return TRUE;
}
#endif /* _MSC_VER */
#endif /* _MSC_VER && !LIBSSH_STATIC */
#endif /* _WIN32 */