summaryrefslogtreecommitdiffstats
path: root/mutt_idna.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2008-10-07 15:27:28 -0700
committerBrendan Cully <brendan@kublai.com>2008-10-07 15:27:28 -0700
commitad3eb6918326118a67cc7a94b8fc2483ed1bfe20 (patch)
treed37b93304247058ff0c29c141a3d266da4bb1f48 /mutt_idna.c
parent0aae6da0f3f375cf2fee61a1598507fa3836d423 (diff)
Build no-op versions of new IDN functions if IDN is unavailable.
Closes #3122, #3123.
Diffstat (limited to 'mutt_idna.c')
-rw-r--r--mutt_idna.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mutt_idna.c b/mutt_idna.c
index 47839e1c..f7aa57e0 100644
--- a/mutt_idna.c
+++ b/mutt_idna.c
@@ -39,7 +39,7 @@ int mutt_local_to_idna (const char *in, char **out)
*out = safe_strdup (in);
return 0;
}
-
+
#else
/* check whether an address is an IDN */
@@ -148,9 +148,6 @@ int mutt_local_to_idna (const char *in, char **out)
return rv;
}
-#endif
-
-
/* higher level functions */
static int mbox_to_udomain (const char *mbx, char **user, char **domain)
@@ -298,3 +295,5 @@ int mutt_env_to_idna (ENVELOPE *env, char **tag, char **err)
}
#undef H_TO_IDNA
+
+#endif /* HAVE_LIBIDN */