lib/strutils: circumvent missing localeconv()

Add stub too nls.h, include it instead of locale.h.
Code in strutils handles already returned NULL.

Signed-off-by: maximilian attems <max@stro.at>
This commit is contained in:
maximilian attems 2012-05-31 19:40:49 +02:00 committed by Karel Zak
parent e7b976862a
commit ab65d635c8
2 changed files with 7 additions and 1 deletions

View file

@ -12,6 +12,12 @@ int main(int argc, char *argv[]);
#else #else
# undef setlocale # undef setlocale
# define setlocale(Category, Locale) /* empty */ # define setlocale(Category, Locale) /* empty */
struct lconv
{
char *decimal_point;
};
# undef localeconv
# define localeconv() NULL
#endif #endif
#ifdef ENABLE_NLS #ifdef ENABLE_NLS

View file

@ -9,10 +9,10 @@
#include <ctype.h> #include <ctype.h>
#include <errno.h> #include <errno.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <locale.h>
#include <string.h> #include <string.h>
#include "c.h" #include "c.h"
#include "nls.h"
#include "strutils.h" #include "strutils.h"
#include "bitops.h" #include "bitops.h"