X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetopt.c;h=e852127f626003de9d997f6c16b6490449334dd3;hb=911955d8c72adfdba2d2ff7bb3d727e0f18a559e;hp=a5bc2c95e65940b941d2178ccc2afbdca6d026a2;hpb=ba39214f0653f1edaace7e6f804e9d11046cd413;p=gnulib.git diff --git a/lib/getopt.c b/lib/getopt.c index a5bc2c95e..e852127f6 100644 --- a/lib/getopt.c +++ b/lib/getopt.c @@ -75,11 +75,12 @@ #endif #ifndef _ -/* This is for other GNU distributions with internationalized messages. - When compiling libc, the _ macro is predefined. */ -# ifdef HAVE_LIBINTL_H +/* This is for other GNU distributions with internationalized messages. */ +# if defined HAVE_LIBINTL_H || defined _LIBC # include -# define _(msgid) gettext (msgid) +# ifndef _ +# define _(msgid) gettext (msgid) +# endif # else # define _(msgid) (msgid) # endif