diff options
Diffstat (limited to '')
| -rw-r--r-- | luaconf.h | 29 |
1 files changed, 17 insertions, 12 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.225 2014/10/29 18:01:26 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.226 2014/10/30 18:50:03 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 | */ |
| @@ -37,7 +37,7 @@ | |||
| 37 | 37 | ||
| 38 | 38 | ||
| 39 | /* | 39 | /* |
| 40 | @@ LUA_USE_C89 controls the use of non-ansi-C89 features. | 40 | @@ LUA_USE_C89 controls the use of non-ISO-C89 features. |
| 41 | ** Define it if you want Lua to avoid the use of a few C99 features. | 41 | ** Define it if you want Lua to avoid the use of a few C99 features. |
| 42 | */ | 42 | */ |
| 43 | /* #define LUA_USE_C89 */ | 43 | /* #define LUA_USE_C89 */ |
| @@ -99,9 +99,10 @@ | |||
| 99 | ** 'long'/'double'. | 99 | ** 'long'/'double'. |
| 100 | */ | 100 | */ |
| 101 | 101 | ||
| 102 | #if defined(LUA_32BITS) /* { */ | 102 | #if defined(LUA_32BITS) /* { */ |
| 103 | 103 | /* | |
| 104 | /* Small Lua */ | 104 | ** Small Lua |
| 105 | */ | ||
| 105 | #if LUAI_BITSINT >= 32 /* use 'int' if big enough */ | 106 | #if LUAI_BITSINT >= 32 /* use 'int' if big enough */ |
| 106 | #define LUA_INT_INT | 107 | #define LUA_INT_INT |
| 107 | #else /* otherwise use 'long' */ | 108 | #else /* otherwise use 'long' */ |
| @@ -109,19 +110,23 @@ | |||
| 109 | #endif | 110 | #endif |
| 110 | #define LUA_REAL_FLOAT | 111 | #define LUA_REAL_FLOAT |
| 111 | 112 | ||
| 112 | #elif defined(LUA_USE_C89) /* }{ */ | 113 | #elif defined(LUA_USE_C89) && !defined(LUA_USE_WINDOWS) /* }{ */ |
| 113 | 114 | /* | |
| 114 | /* use largerst types available for C89 ('long' and 'double') */ | 115 | ** use largerst types available for C89 ('long' and 'double'); |
| 116 | ** Windows has '__int64', so does not need to use this case | ||
| 117 | */ | ||
| 115 | #define LUA_INT_LONG | 118 | #define LUA_INT_LONG |
| 116 | #define LUA_REAL_DOUBLE | 119 | #define LUA_REAL_DOUBLE |
| 117 | 120 | ||
| 118 | #else /* }{ */ | 121 | #else /* }{ */ |
| 119 | 122 | /* | |
| 120 | /* default configuration for 64-bit Lua ('long long' and 'double') */ | 123 | ** default configuration for 64-bit Lua ('long long' and 'double'); |
| 124 | ** Windows will use '__int64' | ||
| 125 | */ | ||
| 121 | #define LUA_INT_LONGLONG | 126 | #define LUA_INT_LONGLONG |
| 122 | #define LUA_REAL_DOUBLE | 127 | #define LUA_REAL_DOUBLE |
| 123 | 128 | ||
| 124 | #endif /* } */ | 129 | #endif /* } */ |
| 125 | 130 | ||
| 126 | /* }================================================================== */ | 131 | /* }================================================================== */ |
| 127 | 132 | ||
