X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_i18n.h;h=3265a76510ef94d6890fc602f1015e693bfc5421;hb=f467b805f7cbe821d1bfec27ad643067dd19ca10;hp=16e1e16f78fd7e96cf0f11aa13fb895ab179409c;hpb=3d068765c6b6c8d096e0692f22e5b5e407948b54;p=rrdtool.git diff --git a/src/rrd_i18n.h b/src/rrd_i18n.h index 16e1e16..3265a76 100644 --- a/src/rrd_i18n.h +++ b/src/rrd_i18n.h @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.3rc2 Copyright by Takao Fujiwara, 2008 + * RRDtool 1.4.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