Fix Visual Studio linker error
authorFabian Fichter <ianfab@users.noreply.github.com>
Tue, 11 Aug 2020 05:38:18 +0000 (07:38 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Tue, 11 Aug 2020 05:39:35 +0000 (07:39 +0200)
Closes #169.

src/types.h

index 8fcbbbd..ac46f2a 100644 (file)
@@ -51,6 +51,7 @@
 #pragma warning(disable: 4146) // Unary minus operator applied to unsigned type
 #pragma warning(disable: 4800) // Forcing value to bool 'true' or 'false'
 #pragma comment(linker, "/STACK:8000000") // Use 8 MB stack size for MSVC
+#pragma comment(lib, "advapi32.lib") // Fix linker error
 #endif
 
 /// Predefined macros hell: