changeset 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 7e400b0c6397
children 4370819b97ff
files libpurple/dnsquery.c libpurple/dnssrv.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
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)
 
--- a/libpurple/dnssrv.c	Sat Oct 31 19:23:14 2009 +0000
+++ b/libpurple/dnssrv.c	Sat Oct 31 22:25:22 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