diff options
-rw-r--r-- | luaconf.h | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.218 2014/10/17 16:28:21 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.219 2014/10/20 16:32:05 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 | */ |
@@ -547,16 +547,11 @@ | |||
547 | #endif /* } */ | 547 | #endif /* } */ |
548 | 548 | ||
549 | 549 | ||
550 | #if defined(LUA_ANSI) | 550 | #if !defined(LUA_USE_C99) |
551 | /* C89 does not support 'opf' variants for math functions */ | 551 | /* 'strtof' and 'opf' variants for math functions are C99 */ |
552 | #undef l_mathop | 552 | #undef l_mathop |
553 | #define l_mathop(op) (lua_Number)op | ||
554 | #endif | ||
555 | |||
556 | |||
557 | #if defined(LUA_ANSI) || defined(_WIN32) | ||
558 | /* C89 and Windows do not support 'strtof'... */ | ||
559 | #undef lua_str2number | 553 | #undef lua_str2number |
554 | #define l_mathop(op) (lua_Number)op | ||
560 | #define lua_str2number(s,p) ((lua_Number)strtod((s), (p))) | 555 | #define lua_str2number(s,p) ((lua_Number)strtod((s), (p))) |
561 | #endif | 556 | #endif |
562 | 557 | ||