Skip to content

Commit b3c78cf

Browse files
committed
libvisual/gettext.h: Address redefinition of macro gettext_noop
Symptom was: > ./gettext.h:71: error: "gettext_noop" redefined [-Werror] > 71 | #define gettext_noop(String) String > | > ./gettext.h:49: note: this is the location of the previous definition > 49 | # define gettext_noop(Msgid) ((const char *) (Msgid)) > |
1 parent b38f2a8 commit b3c78cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libvisual/libvisual/gettext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
On pre-ANSI systems without 'const', the config.h file is supposed to
4747
contain "#define const". */
4848
# define gettext(Msgid) ((const char *) (Msgid))
49-
# define gettext_noop(Msgid) ((const char *) (Msgid))
5049
# define dgettext(Domainname, Msgid) ((const char *) (Msgid))
5150
# define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid))
5251
# define ngettext(Msgid1, Msgid2, N) \
@@ -68,6 +67,7 @@
6867
and other string expressions won't work.
6968
The macro's expansion is not parenthesized, so that it is suitable as
7069
initializer for static 'char[]' or 'const char[]' variables. */
70+
#undef gettext_noop
7171
#define gettext_noop(String) String
7272

7373
#define N_(String) gettext_noop(String)

0 commit comments

Comments
 (0)