You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/json-c-2-fix-wincrypt-inclu...

21 lines
557 B

This file is part of MXE. See LICENSE.md for licensing information.
mingw32 doesn't include wincrypt.h in windows.h, so the build fails.
This is basically
https://github.com/ams-cs/json-c/commit/ca0ebe0f71b806f73a20d5d5e0da78aba5de42be
--- a/random_seed.c 2014-04-11 02:41:08.000000000 +0200
+++ b/random_seed.c 2014-10-12 20:07:32.419043270 +0200
@@ -181,7 +181,10 @@
#define HAVE_CRYPTGENRANDOM 1
#include <windows.h>
+#include <wincrypt.h>
+#ifndef __GNUC__
#pragma comment(lib, "advapi32.lib")
+#endif
static int get_cryptgenrandom_seed()
{