aboutsummaryrefslogtreecommitdiff
path: root/crypto/cryptlib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2016-02-14 11:48:47 +0100
committerRichard Levitte <levitte@openssl.org>2016-02-14 14:13:53 +0100
commitdda71111b88bc36a75e25787ecbe246f2620e940 (patch)
tree996fd4c55b1c03a4984828422cc52b2df9b24f4b /crypto/cryptlib.c
parent08934f1ab2f19061139f93fe2f1ee2470485b85c (diff)
downloadopenssl-dda71111b88bc36a75e25787ecbe246f2620e940.zip
openssl-dda71111b88bc36a75e25787ecbe246f2620e940.tar.gz
openssl-dda71111b88bc36a75e25787ecbe246f2620e940.tar.bz2
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 <kurt@openssl.org>
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r--crypto/cryptlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index 1b2a365..8052893 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) {