فهرست منبع

comments + Windows numeric types not used if LUA_ANSI is defined

Roberto Ierusalimschy 10 سال پیش
والد
کامیت
41d0e66184
1فایلهای تغییر یافته به همراه7 افزوده شده و 6 حذف شده
  1. 7 6
      luaconf.h

+ 7 - 6
luaconf.h

@@ -1,5 +1,5 @@
 /*
-** $Id: luaconf.h,v 1.221 2014/10/24 11:42:47 roberto Exp roberto $
+** $Id: luaconf.h,v 1.222 2014/10/27 16:59:31 roberto Exp roberto $
 ** Configuration file for Lua
 ** See Copyright Notice in lua.h
 */
@@ -23,10 +23,11 @@
 @@ LUA_REAL_FLOAT / LUA_REAL_DOUBLE / LUA_REAL_LONGDOUBLE defines
 @@ type for Lua floats. You must define one of them.
 **
-** These definitions set the numeric types for Lua. Lua should work fine
-** with any mix of these previous options.  The usual configurations
-** are 64-bit integers and floats (the default) and 32-bit integers and
-** floats (Small Lua, for restricted platforms).
+** These definitions set the numeric types for Lua. Lua should work
+** fine with any mix of these previous options (if supported by your
+** C compiler).  The usual configurations are 64-bit integers and
+** 'double' (the default) and 32-bit integers and 'float' (Small Lua,
+** for restricted platforms).
 **
 ** Note that C compilers not compliant with C99 may not have
 ** support for 'long long'. In that case, you should not use option
@@ -659,7 +660,7 @@
 
 #elif defined(LUA_INT_LONGLONG)	/* }{ long long */
 
-#if defined(_WIN32)
+#if defined(LUA_WIN)
 
 #define LUA_INTEGER		__int64
 #define LUA_INTEGER_FRMLEN	"I64"