瀏覽代碼

MacOS 'strtod' handles hexa formats too

Roberto Ierusalimschy 14 年之前
父節點
當前提交
d34271fe42
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      luaconf.h

+ 2 - 1
luaconf.h

@@ -1,5 +1,5 @@
 /*
-** $Id: luaconf.h,v 1.155 2011/04/20 16:36:28 roberto Exp roberto $
+** $Id: luaconf.h,v 1.156 2011/04/20 18:25:54 roberto Exp roberto $
 ** Configuration file for Lua
 ** See Copyright Notice in lua.h
 */
@@ -53,6 +53,7 @@
 #define LUA_USE_POSIX
 #define LUA_USE_DLOPEN		/* does not need -ldl */
 #define LUA_USE_READLINE	/* needs an extra library: -lreadline */
+#define LUA_USE_STRTODHEX	/* assume 'strtod' handles hexa formats */
 #define LUA_USE_AFORMAT		/* assume 'printf' handles 'aA' specifiers */
 #define LUA_USE_LONGLONG	/* assume support for long long */
 #endif