X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_i18n.h;h=36d79e7b79b045323621440f3f880f2df118e955;hb=2a7262ebb15ad48133e5a7c7f24449013661a559;hp=db5645531cc9c7b41f65972b3b2d16d7cbc59b66;hpb=e1c12d5c14b4a716ea999204cedb13e98466ff15;p=rrdtool.git diff --git a/src/rrd_i18n.h b/src/rrd_i18n.h index db56455..36d79e7 100644 --- a/src/rrd_i18n.h +++ b/src/rrd_i18n.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.3rc3 Copyright by Takao Fujiwara, 2008 + * RRDtool 1.3.2 Copyright by Takao Fujiwara, 2008 ***************************************************************************** * rrd_i18n.h Common Header File *****************************************************************************/ @@ -11,18 +11,18 @@ extern "C" { #ifndef _RRD_I18N_H #define _RRD_I18N_H -#ifndef _ -/* This is for other GNU distributions with internationalized messages. - When compiling libc, the _ macro is predefined. */ -#ifdef HAVE_LIBINTL_H -# include -#define _(String) gettext (String) +#ifdef ENABLE_NLS +# ifdef _LIBC +# include +# else +# include "gettext.h" +# define _(String) gettext (String) +# endif #else -#define _(String) (String) -#endif -#define N_(String) (String) +# define _(String) (String) #endif +#define N_(String) String #endif