Cambridge, MA 02139, USA. */
#include <langinfo.h>
+#include <errno.h>
+#include <stddef.h>
+#include "localeinfo.h"
/* This array duplicates `_nl_current' defined in setlocale.c; but since
the references here are not weak references, this guarantees that the
return NULL;
}
- data = nldata[category];
+ data = *nldata[category];
if (index >= data->nstrings)
{
}
/* Return the string for the specified item. */
- return (char *) nldata->strings[index];
+ return (char *) data->strings[index];
}