summaryrefslogtreecommitdiff
path: root/system/gettext-tiny/stop-doing-macro-crap.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-15 02:52:29 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-15 02:52:29 -0500
commit847761ee92ded0fabdcbeb077045d8ce1a5d2899 (patch)
tree62103bd16587f76c9794dc3e68244dec4c0819cf /system/gettext-tiny/stop-doing-macro-crap.patch
parenta45727815b1d1d76262ac60cc52c4886c30b39db (diff)
downloadpackages-847761ee92ded0fabdcbeb077045d8ce1a5d2899.tar.gz
packages-847761ee92ded0fabdcbeb077045d8ce1a5d2899.tar.bz2
packages-847761ee92ded0fabdcbeb077045d8ce1a5d2899.tar.xz
packages-847761ee92ded0fabdcbeb077045d8ce1a5d2899.zip
system/gettext-tiny: fix macro crap
Diffstat (limited to 'system/gettext-tiny/stop-doing-macro-crap.patch')
-rw-r--r--system/gettext-tiny/stop-doing-macro-crap.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/gettext-tiny/stop-doing-macro-crap.patch b/system/gettext-tiny/stop-doing-macro-crap.patch
new file mode 100644
index 000000000..8886b4eb5
--- /dev/null
+++ b/system/gettext-tiny/stop-doing-macro-crap.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
+@@ -15,14 +15,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))