Commit dda71111 authored by Richard Levitte's avatar Richard Levitte
Browse files

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: default avatarKurt Roeckx <kurt@openssl.org>
parent 08934f1a
Loading
Loading
Loading
Loading
+1
Changes for crypto/cryptlib.c: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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) {