aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gettext-tiny/flip-macro-logic.patch
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2020-04-06 08:55:33 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-04-14 16:33:50 +0000
commit21a0cfd664ae1b0066b1543e3b140665a49ffc42 (patch)
treeca6580b46b1fff62ec1228fbd5aa07af54e59a3e /testing/gettext-tiny/flip-macro-logic.patch
parent214d886327c2da9d8e202951c80dd10d3dcc9dce (diff)
downloadaports-21a0cfd664ae1b0066b1543e3b140665a49ffc42.tar.bz2
aports-21a0cfd664ae1b0066b1543e3b140665a49ffc42.tar.xz
testing/gettext-tiny: new aport
Patches from adelie.
Diffstat (limited to 'testing/gettext-tiny/flip-macro-logic.patch')
-rw-r--r--testing/gettext-tiny/flip-macro-logic.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/testing/gettext-tiny/flip-macro-logic.patch b/testing/gettext-tiny/flip-macro-logic.patch
new file mode 100644
index 0000000000..277bc7ae76
--- /dev/null
+++ b/testing/gettext-tiny/flip-macro-logic.patch
@@ -0,0 +1,20 @@
+--- gettext-tiny-0.2.0/include/libintl.h.old 2017-08-02 06:14:20.000000000 -0500
++++ gettext-tiny-0.2.0/include/libintl.h 2018-06-15 02:31:14.241446687 -0500
+@@ -34,14 +34,14 @@
+ #undef gettext_noop
+ #define gettext_noop(X) X
+
+-#ifndef LIBINTL_NO_MACROS
++#ifdef LIBINTL_MACROS
+ /* if these macros are defined, configure checks will detect libintl as
+ * built into the libc because test programs will work without -lintl.
+ * for example:
+ * checking for ngettext in libc ... yes
+ * the consequence is that -lintl will not be added to the LDFLAGS.
+- * so if for some reason you want that libintl.a gets linked,
+- * add -DLIBINTL_NO_MACROS=1 to your CPPFLAGS. */
++ * so if for some reason you dont want that libintl.a gets linked,
++ * add -DLIBINTL_MACROS=1 to your CPPFLAGS. */
+
+ #define gettext(X) ((char*) (X))
+ #define dgettext(dom, X) ((void)(dom), (char*) (X))