improved handling of libintl issues
[rrdtool.git] / src / rrd_i18n.h
1 /*****************************************************************************
2  * RRDtool 1.3rc3  Copyright by Takao Fujiwara, 2008
3  *****************************************************************************
4  * rrd_i18n.h   Common Header File
5  *****************************************************************************/
6 #ifdef  __cplusplus
7 extern    "C" {
8 #endif
9
10
11 #ifndef _RRD_I18N_H
12 #define _RRD_I18N_H
13
14 #ifndef _
15 /* This is for other GNU distributions with internationalized messages.
16    When compiling libc, the _ macro is predefined.  */
17 #if defined(HAVE_LIBINTL_H) && defined(BUILD_LIBINTL)
18 #  include <libintl.h>
19 #define _(String) gettext (String)
20 #else
21 #define _(String) (String)
22 #endif
23 #define N_(String) (String)
24 #endif
25
26
27 #endif
28
29 #ifdef  __cplusplus
30 }
31 #endif