* lib/defines.h: Added splint definitions to replace <locale.h>

This commit is contained in:
nekral-guest 2009-04-22 21:22:32 +00:00
parent 2c0f3ef707
commit fe29344b33
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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,

View File

@ -23,7 +23,15 @@ typedef unsigned char _Bool;
#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
@ -49,6 +57,7 @@ typedef unsigned char _Bool;
# define ngettext(Msgid1, Msgid2, N) \
((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2))
#endif
#endif
#if STDC_HEADERS
# include <stdlib.h>