blob: fb55e1752c365b6479cdd8b9ef48a55abe51220c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From 6da35c23861c1a442abd62657098b1824f891427 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
asprintf
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(+)
diff --git a/gettext-tools/gnulib-lib/asprintf.c b/gettext-tools/gnulib-lib/asprintf.c
index 06ae3dd..60b9c10 100644
--- a/gettext-tools/gnulib-lib/asprintf.c
+++ b/gettext-tools/gnulib-lib/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
|