+2009-12-30 Bruno Haible <bruno@clisp.org>
+
+ Fix compilation error on most platforms.
+ * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
+ Reported by Simon Josefsson <simon@josefsson.org>
+ and Nelson H. F. Beebe <beebe@math.utah.edu>.
+
2009-12-30 Eric Blake <ebb9@byu.net>
futimens, utimensat: work around ntfs-3g bug
#include "macros.h"
+
+#if HAVE_NEWLOCALE
+
static struct { int cat; int mask; const char *string; } const categories[] =
{
{ LC_CTYPE, LC_CTYPE_MASK, "LC_CTYPE" },
# endif
};
+#endif
+
/* Test the gl_locale_name() function. */
static void
test_locale_name (void)