view src/mingw-libgcrypt-1-fixes.patch @ 3272:2a75f906728b

Add native win32 patch for libgcrypt * src/mingw-libgcrypt-1-fixes.patch: New file
author test
date Fri, 18 Oct 2013 11:59:53 -0400
parents
children 0023c034ec4a
line wrap: on
line source

diff -ur libgcrypt-1.5.3.orig/random/rndw32.c libgcrypt-1.5.3/random/rndw32.c
--- libgcrypt-1.5.3.orig/random/rndw32.c	2013-10-18 11:40:06 -0400
+++ libgcrypt-1.5.3/random/rndw32.c	2013-10-18 11:42:15 -0400
@@ -78,7 +78,9 @@
 #include <stdint.h>
 #endif
 
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
+#include <winperf.h>
 
 
 #include "types.h"
diff -ur libgcrypt-1.5.3.orig/src/ath.h libgcrypt-1.5.3/src/ath.h
--- libgcrypt-1.5.3.orig/src/ath.h	2013-10-18 11:40:06 -0400
+++ libgcrypt-1.5.3/src/ath.h	2013-10-18 11:40:33 -0400
@@ -24,6 +24,7 @@
 #include <config.h>
 
 #ifdef _WIN32
+# define WIN32_LEAN_AND_MEAN
 # include <windows.h>
 #else /* !_WIN32 */
 # ifdef HAVE_SYS_SELECT_H
diff -ur libgcrypt-1.5.3.orig/tests/benchmark.c libgcrypt-1.5.3/tests/benchmark.c
--- libgcrypt-1.5.3.orig/tests/benchmark.c	2013-10-18 11:40:07 -0400
+++ libgcrypt-1.5.3/tests/benchmark.c	2013-10-18 11:40:33 -0400
@@ -25,6 +25,7 @@
 #include <time.h>
 #include <stdarg.h>
 #ifdef _WIN32
+#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #else
 #include <sys/times.h>