Code

Imported upstream version 1.3rc4.
[pkg-rrdtool.git] / src / rrd_i18n.h
diff --git a/src/rrd_i18n.h b/src/rrd_i18n.h
new file mode 100644 (file)
index 0000000..a75a836
--- /dev/null
@@ -0,0 +1,31 @@
+/*****************************************************************************
+ * RRDtool 1.3rc4  Copyright by Takao Fujiwara, 2008
+ *****************************************************************************
+ * rrd_i18n.h   Common Header File
+ *****************************************************************************/
+#ifdef  __cplusplus
+extern    "C" {
+#endif
+
+
+#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 <libintl.h>
+#define _(String) gettext (String)
+#else
+#define _(String) (String)
+#endif
+#define N_(String) (String)
+#endif
+
+
+#endif
+
+#ifdef  __cplusplus
+}
+#endif