diff options
| -rw-r--r-- | luaconf.h | 20 |
1 files changed, 10 insertions, 10 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: luaconf.h,v 1.71 2005/10/25 13:36:28 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.72 2005/11/08 19:45:58 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 | */ |
| @@ -32,17 +32,11 @@ | |||
| 32 | #if !defined(LUA_ANSI) | 32 | #if !defined(LUA_ANSI) |
| 33 | 33 | ||
| 34 | #if defined(__linux__) | 34 | #if defined(__linux__) |
| 35 | #define LUA_USE_MKSTEMP | 35 | #define LUA_USE_POSIX |
| 36 | #define LUA_USE_ISATTY | ||
| 37 | #define LUA_USE_ULONGJMP | ||
| 38 | #define LUA_USE_POPEN | ||
| 39 | #endif | 36 | #endif |
| 40 | 37 | ||
| 41 | #if defined(__APPLE__) && defined(__MACH__) | 38 | #if defined(__APPLE__) && defined(__MACH__) |
| 42 | #define LUA_USE_MKSTEMP | 39 | #define LUA_USE_POSIX |
| 43 | #define LUA_USE_ISATTY | ||
| 44 | #define LUA_USE_ULONGJMP | ||
| 45 | #define LUA_USE_POPEN | ||
| 46 | #define LUA_DL_DYLD | 40 | #define LUA_DL_DYLD |
| 47 | #endif | 41 | #endif |
| 48 | 42 | ||
| @@ -54,6 +48,12 @@ | |||
| 54 | 48 | ||
| 55 | 49 | ||
| 56 | 50 | ||
| 51 | #if defined(LUA_USE_POSIX) | ||
| 52 | #define LUA_USE_MKSTEMP | ||
| 53 | #define LUA_USE_ISATTY | ||
| 54 | #define LUA_USE_POPEN | ||
| 55 | #define LUA_USE_ULONGJMP | ||
| 56 | #endif | ||
| 57 | 57 | ||
| 58 | 58 | ||
| 59 | /* | 59 | /* |
| @@ -545,7 +545,7 @@ | |||
| 545 | 545 | ||
| 546 | /* On a Pentium, resort to a trick */ | 546 | /* On a Pentium, resort to a trick */ |
| 547 | #if !defined(LUA_ANSI) && !defined(__SSE2__) && \ | 547 | #if !defined(LUA_ANSI) && !defined(__SSE2__) && \ |
| 548 | (defined(__i386) || defined (_M_IX86)) | 548 | (defined(__i386) || defined (_M_IX86) || defined(__i386__)) |
| 549 | union luai_Cast { double l_d; long l_l; }; | 549 | union luai_Cast { double l_d; long l_l; }; |
| 550 | #define lua_number2int(i,d) \ | 550 | #define lua_number2int(i,d) \ |
| 551 | { volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; } | 551 | { volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; } |
