summaryrefslogtreecommitdiff
path: root/src/punycode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/punycode.c')
-rw-r--r--src/punycode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/punycode.c b/src/punycode.c
index fa44a6a..187351a 100644
--- a/src/punycode.c
+++ b/src/punycode.c
@@ -278,6 +278,9 @@ enum punycode_status punycode_decode(punycode_uint input_length,
return punycode_success;
}
+#ifdef PUNYCODE_COSTELLO_RFC3492_INCLUDE_TEST
+#define PUNYCODE_COSTELLO_RFC3492_INCLUDE_TEST
+
/******************************************************************/
/* Wrapper for testing (would normally go in a separate .c file): */
@@ -321,6 +324,8 @@ static const char invalid_input[] = "invalid input\n";
static const char overflow[] = "arithmetic overflow\n";
static const char io_error[] = "I/O error\n";
+#endif
+
/* The following string is used to convert printable */
/* characters between ASCII and the native charset: */