X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_i18n.h;h=a0dfffddd44f30d59fc2042b9cd3feae4cd670a1;hp=38a3f084d84de75ddf646833c395860cbb34ccce;hb=56d67cdd0c5b2c27c9242a3d5810c7184917f663;hpb=b894ebf96ca888b9e3e13b2ab86a6c6f284b757c diff --git a/src/rrd_i18n.h b/src/rrd_i18n.h index 38a3f08..a0dfffd 100644 --- a/src/rrd_i18n.h +++ b/src/rrd_i18n.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.3rc5 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