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:
parent
e7b976862a
commit
ab65d635c8
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue