mirror of https://github.com/rusefi/lua.git
Windows uses "LONGLONG" option, even not having long long (it has __int64)
This commit is contained in:
parent
e75c0148c3
commit
c5d52a5468
23
luaconf.h
23
luaconf.h
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: luaconf.h,v 1.225 2014/10/29 18:01:26 roberto Exp roberto $
|
** $Id: luaconf.h,v 1.226 2014/10/30 18:50:03 roberto Exp roberto $
|
||||||
** Configuration file for Lua
|
** Configuration file for Lua
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ LUA_USE_C89 controls the use of non-ansi-C89 features.
|
@@ LUA_USE_C89 controls the use of non-ISO-C89 features.
|
||||||
** Define it if you want Lua to avoid the use of a few C99 features.
|
** Define it if you want Lua to avoid the use of a few C99 features.
|
||||||
*/
|
*/
|
||||||
/* #define LUA_USE_C89 */
|
/* #define LUA_USE_C89 */
|
||||||
|
@ -100,8 +100,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(LUA_32BITS) /* { */
|
#if defined(LUA_32BITS) /* { */
|
||||||
|
/*
|
||||||
/* Small Lua */
|
** Small Lua
|
||||||
|
*/
|
||||||
#if LUAI_BITSINT >= 32 /* use 'int' if big enough */
|
#if LUAI_BITSINT >= 32 /* use 'int' if big enough */
|
||||||
#define LUA_INT_INT
|
#define LUA_INT_INT
|
||||||
#else /* otherwise use 'long' */
|
#else /* otherwise use 'long' */
|
||||||
|
@ -109,15 +110,19 @@
|
||||||
#endif
|
#endif
|
||||||
#define LUA_REAL_FLOAT
|
#define LUA_REAL_FLOAT
|
||||||
|
|
||||||
#elif defined(LUA_USE_C89) /* }{ */
|
#elif defined(LUA_USE_C89) && !defined(LUA_USE_WINDOWS) /* }{ */
|
||||||
|
/*
|
||||||
/* use largerst types available for C89 ('long' and 'double') */
|
** use largerst types available for C89 ('long' and 'double');
|
||||||
|
** Windows has '__int64', so does not need to use this case
|
||||||
|
*/
|
||||||
#define LUA_INT_LONG
|
#define LUA_INT_LONG
|
||||||
#define LUA_REAL_DOUBLE
|
#define LUA_REAL_DOUBLE
|
||||||
|
|
||||||
#else /* }{ */
|
#else /* }{ */
|
||||||
|
/*
|
||||||
/* default configuration for 64-bit Lua ('long long' and 'double') */
|
** default configuration for 64-bit Lua ('long long' and 'double');
|
||||||
|
** Windows will use '__int64'
|
||||||
|
*/
|
||||||
#define LUA_INT_LONGLONG
|
#define LUA_INT_LONGLONG
|
||||||
#define LUA_REAL_DOUBLE
|
#define LUA_REAL_DOUBLE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue