X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_i18n.h;h=763c67a677a82ede707f47d143c8e19a9964f224;hb=45fdf99cbd645b2b9731f6186a8713f093ab1946;hp=aaa82ff7c0ffd1a9d7557cf07ccf011e9da510be;hpb=eb44444f03424eb0a1ce61320e1fd9fe88eb26e1;p=rrdtool.git diff --git a/src/rrd_i18n.h b/src/rrd_i18n.h index aaa82ff..763c67a 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.4.3 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. */ -#if defined(HAVE_LIBINTL_H) && defined(BUILD_LIBINTL) -# 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