summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/IDN/PlatformIDNConverter.cpp')
-rw-r--r--Swiften/IDN/PlatformIDNConverter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiften/IDN/PlatformIDNConverter.cpp b/Swiften/IDN/PlatformIDNConverter.cpp
index 6d9cff7..4882b60 100644
--- a/Swiften/IDN/PlatformIDNConverter.cpp
+++ b/Swiften/IDN/PlatformIDNConverter.cpp
@@ -19,7 +19,9 @@ IDNConverter* PlatformIDNConverter::create() {
#elif defined(HAVE_ICU)
return new ICUConverter();
#else
+#if defined(NEED_IDN)
#error "No IDN implementation"
+#endif
return 0;
#endif
}