Browse Source

Fix build using MinGW.

MinGW requires wincrypt.h.
GCC does not support #pragma comment, which trips Werror.
tags/json-c-0.13-20171207
Andrew Stubbs 11 years ago
parent
commit
ca0ebe0f71
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      random_seed.c

+ 3
- 0
random_seed.c View File

@@ -181,7 +181,10 @@ static int get_dev_random_seed()
#define HAVE_CRYPTGENRANDOM 1 #define HAVE_CRYPTGENRANDOM 1


#include <windows.h> #include <windows.h>
#include <wincrypt.h>
#ifndef __GNUC__
#pragma comment(lib, "advapi32.lib") #pragma comment(lib, "advapi32.lib")
#endif


static int get_cryptgenrandom_seed() static int get_cryptgenrandom_seed()
{ {


Loading…
Cancel
Save