Fix compilation error on most platforms.
[gnulib.git] / tests / test-localename.c
index 38fc330..9afa932 100644 (file)
@@ -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)