Fix compilation error on mingw.
author |
Bruno Haible <bruno@clisp.org> |
date |
Mon, 21 Apr 2008 23:45:08 +0200 |
parents |
03b212920228 |
children |
5605642e7756 |
files |
ChangeLog lib/gc-gnulib.c |
diffstat |
2 files changed, 5 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-20 Bruno Haible <bruno@clisp.org>
+
+ * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
+
2008-04-21 Eric Blake <ebb9@byu.net>
Work around preprocessors that don't handle UINTMAX_MAX.
--- a/lib/gc-gnulib.c
+++ b/lib/gc-gnulib.c
@@ -75,6 +75,7 @@
#ifdef GNULIB_GC_RANDOM
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# include <windows.h>
# include <wincrypt.h>
HCRYPTPROV g_hProv = 0;
# endif