X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_i18n.h;h=a0dfffddd44f30d59fc2042b9cd3feae4cd670a1;hp=a75a83618df1f2094d340b823c698a820b6ba04f;hb=56d67cdd0c5b2c27c9242a3d5810c7184917f663;hpb=a4c8bc0c3fe53c713819358f506aa5d24bae5754 diff --git a/src/rrd_i18n.h b/src/rrd_i18n.h index a75a836..a0dfffd 100644 --- a/src/rrd_i18n.h +++ b/src/rrd_i18n.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.3rc4 Copyright by Takao Fujiwara, 2008 + * RRDtool 1.4.0 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