changeset 29492:4e13885b1a6a

dns_str_is_ascii() is only used if USE_IDN is defined
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 04 Sep 2009 02:49:15 +0000
parents 78b17bb6da24
children 224f9674a57e
files libpurple/dnsquery.c libpurple/dnssrv.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dnsquery.c	Wed Aug 26 03:20:05 2009 +0000
+++ b/libpurple/dnsquery.c	Fri Sep 04 02:49:15 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)
 
--- a/libpurple/dnssrv.c	Wed Aug 26 03:20:05 2009 +0000
+++ b/libpurple/dnssrv.c	Fri Sep 04 02:49:15 2009 +0000
@@ -248,6 +248,7 @@
 	return list;
 }
 
+#ifdef USE_IDN
 static gboolean
 dns_str_is_ascii(const char *name)
 {
@@ -259,6 +260,7 @@
 
 	return TRUE;
 }
+#endif
 
 #ifndef _WIN32