1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

init: Only add DllMain if we create a shared library

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-10-09 10:12:12 +02:00
parent 275f73125d
commit f747e46f33

View File

@@ -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 */