Fix compilation error on mingw.
authorBruno Haible <bruno@clisp.org>
Mon, 21 Apr 2008 21:45:08 +0000 (23:45 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 21 Apr 2008 21:45:08 +0000 (23:45 +0200)
ChangeLog
lib/gc-gnulib.c

index 9266f7f..2be1c53 100644 (file)
--- 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.
index eb6c403..fabc663 100644 (file)
@@ -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