commit a2b1c279f184ea8cfb6de941753cb2bf82ffac19
parent 2f128c5130b962bc691aa1f7eaf5882b3e826c23
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Tue, 19 Apr 2011 15:31:06 -0300
'LUA_USELONGLONG' on by default on Linux + LUA_USE_HEXAFLOAT renamed
to LUA_USE_STRTODHEX (as Lua 5.2 always *uses* hexa floats)
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/luaconf.h b/luaconf.h
@@ -1,5 +1,5 @@
/*
-** $Id: luaconf.h,v 1.152 2010/12/08 12:58:04 roberto Exp roberto $
+** $Id: luaconf.h,v 1.153 2010/12/10 19:03:46 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -44,8 +44,9 @@
#define LUA_USE_POSIX
#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
#define LUA_USE_READLINE /* needs some extra libraries */
-#define LUA_USE_HEXAFLOAT /* assume 'strtod' handles hexa formats */
+#define LUA_USE_STRTODHEX /* assume 'strtod' handles hexa formats */
#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
+#define LUA_USELONGLONG /* assume support for long long */
#endif
#if defined(LUA_USE_MACOSX)
@@ -397,7 +398,7 @@
*/
#define lua_str2number(s,p) strtod((s), (p))
-#if defined(LUA_USE_HEXAFLOAT)
+#if defined(LUA_USE_STRTODHEX)
#define lua_strx2number(s,p) strtod((s), (p))
#endif