added missing bits from internationalization
[rrdtool.git] / src / rrd_i18n.h
1 /*****************************************************************************
2  * RRDtool 1.2.19  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 #ifdef HAVE_LIBINTL_H
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