diff libpurple/dnsquery.c @ 28474:1c6c53143afe

dns: Avoid two warnings when building with --disable-idn.
author Paul Aurich <paul@darkrain42.org>
date Sat, 31 Oct 2009 22:25:22 +0000
parents 213a3449bb3c
children 4370819b97ff
line wrap: on
line diff
--- a/libpurple/dnsquery.c	Sat Oct 31 19:23:14 2009 +0000
+++ b/libpurple/dnsquery.c	Sat Oct 31 22:25:22 2009 +0000
@@ -172,6 +172,7 @@
 	return FALSE;
 }
 
+#ifdef USE_IDN
 static gboolean
 dns_str_is_ascii(const char *name)
 {
@@ -183,6 +184,7 @@
 
 	return TRUE;
 }
+#endif
 
 #if defined(PURPLE_DNSQUERY_USE_FORK)