-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
246 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Do not replace names of asprintf and vasprintf while including a header | ||
that pulls in stdio.h which also declares functions with that names. | ||
These function declarations would conflict with the declarations from | ||
this library. | ||
|
||
diff -urN gettext-0.22.3/gettext-runtime/libasprintf/vasprintf.c.orig gettext-0.22.3/gettext-runtime/libasprintf/vasprintf.c | ||
--- gettext-0.22.3/gettext-runtime/libasprintf/vasprintf.c.orig 2019-05-11 13:29:32.000000000 +0200 | ||
+++ gettext-0.22.3/gettext-runtime/libasprintf/vasprintf.c 2023-10-27 18:58:18.838760500 +0200 | ||
@@ -27,8 +27,19 @@ | ||
#include <limits.h> | ||
#include <stdlib.h> | ||
|
||
+#undef asprintf | ||
+#undef vasprintf | ||
+ | ||
#include "vasnprintf.h" | ||
|
||
+#if !(HAVE_VASPRINTF && HAVE_POSIX_PRINTF) | ||
+ | ||
+/* Define to the same symbols as in lib-asprintf.h. */ | ||
+#define asprintf libasprintf_asprintf | ||
+#define vasprintf libasprintf_vasprintf | ||
+ | ||
+#endif | ||
+ | ||
/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ | ||
#ifndef EOVERFLOW | ||
# define EOVERFLOW E2BIG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Do not include two directories with generated gnulib headers in -I flags, | ||
or #include_next directive for error.h fails. | ||
|
||
diff -urN gettext-0.22.3/gettext-tools/src/Makefile.am.orig gettext-0.22.3/gettext-tools/src/Makefile.am | ||
--- gettext-0.22.3/gettext-tools/src/Makefile.am.orig 2023-10-27 20:04:58.982538600 +0200 | ||
+++ gettext-0.22.3/gettext-tools/src/Makefile.am 2023-10-27 20:40:13.497536600 +0200 | ||
@@ -307,7 +307,7 @@ | ||
|
||
# Use the dummy libtextstyle from gnulib, as libgettextpo does. | ||
LT_LIBTEXTSTYLE = | ||
-AM_CPPFLAGS += -I../libgettextpo -I$(top_srcdir)/libgettextpo | ||
+AM_CPPFLAGS += -I$(top_srcdir)/libgettextpo | ||
|
||
# How to build libgettextsrc.la. | ||
# Need ../gnulib-lib/libgettextlib.la. | ||
diff -urN gettext-0.22.3/gettext-tools/libgettextpo/Makefile.gnulib.orig gettext-0.22.3/gettext-tools/libgettextpo/Makefile.gnulib | ||
--- gettext-0.22.3/gettext-tools/libgettextpo/Makefile.gnulib.orig 2023-10-02 23:07:33.000000000 +0200 | ||
+++ gettext-0.22.3/gettext-tools/libgettextpo/Makefile.gnulib 2023-10-27 21:08:15.039903500 +0200 | ||
@@ -751,11 +751,12 @@ | ||
# We need the following in order to create a dummy placeholder for | ||
# <textstyle.h>. | ||
textstyle.h: textstyle.in.h $(top_builddir)/config.status | ||
- $(AM_V_GEN)rm -f $@-t $@ && \ | ||
+ $(AM_V_GEN)rm -f $@-t $@ ../gnulib-lib/$@ && \ | ||
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ | ||
cat $(srcdir)/textstyle.in.h; \ | ||
} > $@-t && \ | ||
- mv $@-t $@ | ||
+ mv $@-t $@ && \ | ||
+ cp $@ ../gnulib-lib/$@ | ||
MOSTLYCLEANFILES += textstyle.h textstyle.h-t | ||
|
||
EXTRA_DIST += textstyle.in.h |
121 changes: 0 additions & 121 deletions
121
mingw-w64-gettext/0030-fix-wbindtextdomain-backport.patch
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.