aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lua
diff options
context:
space:
mode:
authorAlexey Zaytsev <alexey.zaytsev@gmail.com>2008-07-18 02:23:26 +0400
committerAlexey Zaytsev <zaytsev.a@protei.ru>2008-07-18 02:23:26 +0400
commitb6382e3eae47fa318c07b6230201ca7d86de4f65 (patch)
tree52e2dd1de5a2d3dbecf80fdc4230fc088bdad506 /com32/lua
parent23daa029e1a2a1b705c87e5891948794f55831f5 (diff)
downloadsyslinux-b6382e3eae47fa318c07b6230201ca7d86de4f65.tar.gz
syslinux-b6382e3eae47fa318c07b6230201ca7d86de4f65.tar.xz
syslinux-b6382e3eae47fa318c07b6230201ca7d86de4f65.zip
Remove the locale.h dependency from llex.h
Signed-off-by: Alexey Zaytsev <zaytsev.a@protei.ru>
Diffstat (limited to 'com32/lua')
-rw-r--r--com32/lua/src/llex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/lua/src/llex.c b/com32/lua/src/llex.c
index 6dc31935..73f01f16 100644
--- a/com32/lua/src/llex.c
+++ b/com32/lua/src/llex.c
@@ -6,7 +6,7 @@
#include <ctype.h>
-#include <locale.h>
+//#include <locale.h>
#include <string.h>
#define llex_c
@@ -176,9 +176,9 @@ static void buffreplace (LexState *ls, char from, char to) {
static void trydecpoint (LexState *ls, SemInfo *seminfo) {
/* format error: try to update decimal point separator */
- struct lconv *cv = localeconv();
+ //struct lconv *cv = localeconv();
char old = ls->decpoint;
- ls->decpoint = (cv ? cv->decimal_point[0] : '.');
+ //ls->decpoint = (cv ? cv->decimal_point[0] : '.');
buffreplace(ls, old, ls->decpoint); /* try updated decimal separator */
if (!luaO_str2d(luaZ_buffer(ls->buff), &seminfo->r)) {
/* format error with correct decimal point: no more options */