diff options
Diffstat (limited to 'luaconf.h')
-rw-r--r-- | luaconf.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.248 2015/03/06 19:49:50 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.249 2015/03/31 12:00:07 roberto Exp roberto $ |
3 | ** Configuration file for Lua | 3 | ** Configuration file for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -569,7 +569,7 @@ | |||
569 | 569 | ||
570 | /* | 570 | /* |
571 | ** {================================================================== | 571 | ** {================================================================== |
572 | ** Dependencies with C99 | 572 | ** Dependencies with C99 and other C details |
573 | ** =================================================================== | 573 | ** =================================================================== |
574 | */ | 574 | */ |
575 | 575 | ||
@@ -626,6 +626,16 @@ | |||
626 | #endif | 626 | #endif |
627 | #endif | 627 | #endif |
628 | 628 | ||
629 | |||
630 | /* | ||
631 | @@ lua_getlocaledecpoint gets the locale "radix character" (decimal point). | ||
632 | ** Change that if you do not want to use C locales. (Code using this | ||
633 | ** macro must include header 'locale.h'.) | ||
634 | */ | ||
635 | #if !defined(lua_getlocaledecpoint) | ||
636 | #define lua_getlocaledecpoint() (localeconv()->decimal_point[0]) | ||
637 | #endif | ||
638 | |||
629 | /* }================================================================== */ | 639 | /* }================================================================== */ |
630 | 640 | ||
631 | 641 | ||