+2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
+
+ * lib/defines.h: Added splint definitions to replace <locale.h>
+
2009-04-22 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/utmp.c, libmisc/age.c, libmisc/shell.c, lib/groupio.c,
#define ISDIGIT_LOCALE(c) (IN_CTYPE_DOMAIN (c) && isdigit (c))
/* Take care of NLS matters. */
-
+#ifdef S_SPLINT_S
+extern char *setlocale(int categorie, const char *locale);
+# define LC_ALL (6)
+extern char * bindtextdomain (const char * domainname, const char * dirname);
+extern char * textdomain (const char * domainname);
+# define _(Text) Text
+# define ngettext(Msgid1, Msgid2, N) \
+ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
+#else
#ifdef HAVE_LOCALE_H
# include <locale.h>
#else
# define ngettext(Msgid1, Msgid2, N) \
((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
#endif
+#endif
#if STDC_HEADERS
# include <stdlib.h>