Skip to content

Commit 117e8eb

Browse files
awilfoxrofl0r
authored andcommitted
libintl.h: don't enable NOP macros by default
with these macros active by default, basically no translation happens at all. that's almost certainly not what you want.
1 parent ad42fde commit 117e8eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

include/libintl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ char *bindtextdomain(const char *domainname, const char *dirname);
2121
#undef gettext_noop
2222
#define gettext_noop(X) X
2323

24-
#ifndef LIBINTL_NO_MACROS
24+
#ifdef LIBINTL_NOP_MACROS
2525
/* if these macros are defined, configure checks will detect libintl as
2626
* built into the libc because test programs will work without -lintl.
2727
* for example:
2828
* checking for ngettext in libc ... yes
2929
* the consequence is that -lintl will not be added to the LDFLAGS.
30-
* so if for some reason you want that libintl.a gets linked,
31-
* add -DLIBINTL_NO_MACROS=1 to your CPPFLAGS. */
30+
* so if for some reason you do not want that libintl.a gets linked,
31+
* add -DLIBINTL_NOP_MACROS=1 to your CPPFLAGS. */
3232

3333
#define gettext(X) ((char*) (X))
3434
#define dgettext(dom, X) ((void)(dom), (char*) (X))

0 commit comments

Comments
 (0)