summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-31 02:28:19 +0100
committerBruno Haible <bruno@clisp.org>2009-12-31 02:28:19 +0100
commitb2d69f3f48311d89e9e2f3dba66bf19ca4709dc5 (patch)
treeed62d64038a3f046039e6bce16004b03bd56f327 /tests
parent0e3e69f9f9b31a7d8516bb9699471db6a43bd3c8 (diff)
downloadgnulib-b2d69f3f48311d89e9e2f3dba66bf19ca4709dc5.tar.gz
Fix compilation error on most platforms.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-localename.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-localename.c b/tests/test-localename.c
index 38fc33040a..9afa932441 100644
--- a/tests/test-localename.c
+++ b/tests/test-localename.c
@@ -26,6 +26,9 @@
#include "macros.h"
+
+#if HAVE_NEWLOCALE
+
static struct { int cat; int mask; const char *string; } const categories[] =
{
{ LC_CTYPE, LC_CTYPE_MASK, "LC_CTYPE" },
@@ -54,6 +57,8 @@ static struct { int cat; int mask; const char *string; } const categories[] =
# endif
};
+#endif
+
/* Test the gl_locale_name() function. */
static void
test_locale_name (void)