diff --git a/src/osgPlugins/lua/lua-5.2.3/src/llex.c b/src/osgPlugins/lua/lua-5.2.3/src/llex.c index c4b820e83..5a12fca91 100644 --- a/src/osgPlugins/lua/lua-5.2.3/src/llex.c +++ b/src/osgPlugins/lua/lua-5.2.3/src/llex.c @@ -201,11 +201,6 @@ static void buffreplace (LexState *ls, char from, char to) { } -#if !defined(getlocaledecpoint) -#define getlocaledecpoint() (localeconv()->decimal_point[0]) -#endif - - #define buff2d(b,e) luaO_str2d(luaZ_buffer(b), luaZ_bufflen(b) - 1, e) /* diff --git a/src/osgPlugins/lua/lua-5.2.3/src/luaconf.h b/src/osgPlugins/lua/lua-5.2.3/src/luaconf.h index 18be9a9e4..0af71efca 100644 --- a/src/osgPlugins/lua/lua-5.2.3/src/luaconf.h +++ b/src/osgPlugins/lua/lua-5.2.3/src/luaconf.h @@ -533,6 +533,15 @@ #endif /* } */ + + +#if defined(__ANDROID__) +#define getlocaledecpoint() '.' +#elif !defined(getlocaledecpoint) +#define getlocaledecpoint() (localeconv()->decimal_point[0]) +#endif + + /* }================================================================== */