diff --git a/src/SHA1.c b/src/SHA1.c
index 9bb1175..b2ef930 100644
--- a/src/SHA1.c
+++ b/src/SHA1.c
@@ -19,6 +19,7 @@
 #if !defined(OPENSSL)
 #if defined(WIN32) || defined(WIN64)
 #pragma comment(lib, "crypt32.lib")
+#pragma comment(lib, "Advapi32.lib")
 
 int SHA1_Init(SHA_CTX *c)
 {
