Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Compile gzip 1.6 on mingw64
From 86725346a1b116f3c2da26c124288f5f4495bf69 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Sat, 15 Jun 2013 17:24:24 -0700
Subject: [PATCH] msvc-inval: port to mingw-w64
* lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
Use __cdecl, not cdecl, for mingw-w64. Reported by LRN in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
---
ChangeLog | 7 +++++++
lib/msvc-inval.c | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 06777de..3c3794f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-06-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ msvc-inval: port to mingw-w64
+ * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
+ Use __cdecl, not cdecl, for mingw-w64. Reported by LRN in
+ <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
+
2013-06-11 Paul Eggert <eggert@cs.ucla.edu>
getcwd-lgpl: port to Tru64
diff --git a/lib/msvc-inval.c b/lib/msvc-inval.c
index ef2b860..1873e23 100644
--- a/lib/msvc-inval.c
+++ b/lib/msvc-inval.c
@@ -28,7 +28,7 @@
# if MSVC_INVALID_PARAMETER_HANDLING == DEFAULT_HANDLING
-static void cdecl
+static void __cdecl
gl_msvc_invalid_parameter_handler (const wchar_t *expression,
const wchar_t *function,
const wchar_t *file,
@@ -45,7 +45,7 @@ gl_msvc_invalid_parameter_handler (const wchar_t *expression,
# if defined _MSC_VER
-static void cdecl
+static void __cdecl
gl_msvc_invalid_parameter_handler (const wchar_t *expression,
const wchar_t *function,
const wchar_t *file,
@@ -94,7 +94,7 @@ gl_msvc_inval_current (void)
}
}
-static void cdecl
+static void __cdecl
gl_msvc_invalid_parameter_handler (const wchar_t *expression,
const wchar_t *function,
const wchar_t *file,
--
1.7.2.5
From bb78ea465787191e8987d4b8a6594f9f23a18930 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Wed, 12 Jun 2013 00:53:53 +0000
Subject: maint: port to platforms lacking SIGPIPE
* tailor.h (SIGPIPE): Define to 0 if not defined. This fixes a
porting bug introduced as part of 2012-11-16 syntax-check cleanup.
Problem reported by Bdale Garbee in
<http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00006.html>.
---
diff --git a/tailor.h b/tailor.h
index 0bf88ff..e563b66 100644
--- a/tailor.h
+++ b/tailor.h
@@ -219,6 +219,10 @@
# define OS_CODE 0x0a
#endif
+#ifndef SIGPIPE
+# define SIGPIPE 0
+#endif
+
/* Common defaults */
--
cgit v0.9.0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.