commit c1d9f4cf2cc34e0daec5f7ee00d27d8b8d156f38
parent c1e7427c62082f894c7502ab946da0847152aa87
Author: Michael Savage <mikejsavage@gmail.com>
Date: Thu, 9 Jul 2020 13:16:22 +0300
pragma to automatically link Crypt stuff in on Windows
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/ggentropy.cpp b/ggentropy.cpp
@@ -66,6 +66,8 @@ static bool try_urandom( void * buf, size_t n ) {
#if PLATFORM_WINDOWS
+#pragma comment( lib, "advapi32.lib" )
+
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif