From: Andrew Stubbs Date: Mon, 4 Aug 2014 10:44:25 +0000 (+0100) Subject: Fix build using MinGW. X-Git-Tag: json-c-0.13-20171207~204^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F150%2Fhead;p=thirdparty%2Fjson-c.git Fix build using MinGW. MinGW requires wincrypt.h. GCC does not support #pragma comment, which trips Werror. --- diff --git a/random_seed.c b/random_seed.c index 3b520d41..c47d271f 100644 --- a/random_seed.c +++ b/random_seed.c @@ -181,7 +181,10 @@ static int get_dev_random_seed() #define HAVE_CRYPTGENRANDOM 1 #include +#include +#ifndef __GNUC__ #pragma comment(lib, "advapi32.lib") +#endif static int get_cryptgenrandom_seed() {