improved handling of libintl issues
[rrdtool.git] / src / rrd_i18n.h
index db56455..aaa82ff 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