summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-11-19 19:50:33 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-11-19 19:50:33 +0200
commit6c8bf12e230778cc7bfd296ac7b5d29b3d5e0145 (patch)
tree928ee7e31bbf38442201c1ba8408d5f99e37c4b1
parent8b093fab319ec83248c05b84a1c4ad4f49a689e3 (diff)
gettext: Undef __USE_MINGW_ANSI_STDIO in another file
-rw-r--r--recipes/gettext/0001-Undefine-__USE_MINGW_ANSI_STDIO-as-otherwise-stdio.h.patch21
1 files changed, 18 insertions, 3 deletions
diff --git a/recipes/gettext/0001-Undefine-__USE_MINGW_ANSI_STDIO-as-otherwise-stdio.h.patch b/recipes/gettext/0001-Undefine-__USE_MINGW_ANSI_STDIO-as-otherwise-stdio.h.patch
index fb55e175..6290bfae 100644
--- a/recipes/gettext/0001-Undefine-__USE_MINGW_ANSI_STDIO-as-otherwise-stdio.h.patch
+++ b/recipes/gettext/0001-Undefine-__USE_MINGW_ANSI_STDIO-as-otherwise-stdio.h.patch
@@ -1,4 +1,4 @@
-From 6da35c23861c1a442abd62657098b1824f891427 Mon Sep 17 00:00:00 2001
+From 0556d725cf82d06c84e96ce0d62c751d7dfb06e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
Date: Thu, 19 Nov 2015 19:42:04 +0200
Subject: [PATCH] Undefine __USE_MINGW_ANSI_STDIO as otherwise stdio.h defines
@@ -7,8 +7,9 @@ Subject: [PATCH] Undefine __USE_MINGW_ANSI_STDIO as otherwise stdio.h defines
And configure did not find it because it's an inline function in stdio.h,
not a function that is available in some library. Fixes compilation on Windows.
---
- gettext-tools/gnulib-lib/asprintf.c | 3 +++
- 1 file changed, 3 insertions(+)
+ gettext-tools/gnulib-lib/asprintf.c | 3 +++
+ gettext-tools/libgettextpo/asprintf.c | 3 +++
+ 2 files changed, 6 insertions(+)
diff --git a/gettext-tools/gnulib-lib/asprintf.c b/gettext-tools/gnulib-lib/asprintf.c
index 06ae3dd..60b9c10 100644
@@ -24,6 +25,20 @@ index 06ae3dd..60b9c10 100644
# include <stdio.h>
#endif
+diff --git a/gettext-tools/libgettextpo/asprintf.c b/gettext-tools/libgettextpo/asprintf.c
+index 06ae3dd..60b9c10 100644
+--- a/gettext-tools/libgettextpo/asprintf.c
++++ b/gettext-tools/libgettextpo/asprintf.c
+@@ -21,6 +21,9 @@
+ #ifdef IN_LIBASPRINTF
+ # include "vasprintf.h"
+ #else
++# ifdef __USE_MINGW_ANSI_STDIO
++# undef __USE_MINGW_ANSI_STDIO
++# endif
+ # include <stdio.h>
+ #endif
+
--
2.6.2