Code

improved handling of libintl issues
[rrdtool.git] / src / rrd_i18n.h
index db5645531cc9c7b41f65972b3b2d16d7cbc59b66..aaa82ff7c0ffd1a9d7557cf07ccf011e9da510be 100644 (file)
@@ -14,7 +14,7 @@ extern    "C" {
 #ifndef _
 /* This is for other GNU distributions with internationalized messages.
    When compiling libc, the _ macro is predefined.  */
-#ifdef HAVE_LIBINTL_H
+#if defined(HAVE_LIBINTL_H) && defined(BUILD_LIBINTL)
 #  include <libintl.h>
 #define _(String) gettext (String)
 #else