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 9266f7fe7333cdd7e54bf543e58c38021d05bf5b..2be1c539e9bc353e69b3cb569767343ed4681962 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 eb6c403c6f86c7b899d1686590b651191fee54d2..fabc663bca037a255093cf12e907d6bb011a1366 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