X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_i18n.h;h=a0dfffddd44f30d59fc2042b9cd3feae4cd670a1;hp=db5645531cc9c7b41f65972b3b2d16d7cbc59b66;hb=56d67cdd0c5b2c27c9242a3d5810c7184917f663;hpb=e1c12d5c14b4a716ea999204cedb13e98466ff15 diff --git a/src/rrd_i18n.h b/src/rrd_i18n.h index db56455..a0dfffd 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.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. */ -#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