From: Richard Levitte Date: Sun, 14 Feb 2016 10:48:47 +0000 (+0100) Subject: Declare DllMain internally X-Git-Tag: OpenSSL_1_1_0-pre3~17 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=dda71111b88bc36a75e25787ecbe246f2620e940;ds=sidebyside Declare DllMain internally DllMain is a symbol that needs to be global, but no one needs to know. However, some compilers will warn if there isn't a declaration before the function is defined. Just add a declaration before the function definition. Reviewed-by: Kurt Roeckx --- diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c index 1b2a365baa..8052893db2 100644 --- a/crypto/cryptlib.c +++ b/crypto/cryptlib.c @@ -210,6 +210,7 @@ void OPENSSL_cpuid_setup(void) * detaches */ +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved); BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { switch (fdwReason) {