diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-28 13:18:25 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-28 13:18:25 -0200 |
commit | da57477c3dd51f6eb9afc10546cb125e8ae4d57c (patch) | |
tree | fbd8a1337c0f251b63257d96af4d738382c89a27 | |
parent | f39034889d010f6f81257dde9517a9ad4d021d1c (diff) | |
download | lua-da57477c3dd51f6eb9afc10546cb125e8ae4d57c.tar.gz lua-da57477c3dd51f6eb9afc10546cb125e8ae4d57c.tar.bz2 lua-da57477c3dd51f6eb9afc10546cb125e8ae4d57c.zip |
added more platforms for ieeeendianess + small comments
-rw-r--r-- | luaconf.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: luaconf.h,v 1.144 2010/10/26 19:32:19 roberto Exp roberto $ | 2 | ** $Id: luaconf.h,v 1.145 2010/10/27 17:16:37 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 | */ |
@@ -47,8 +47,8 @@ | |||
47 | 47 | ||
48 | #if defined(LUA_USE_MACOSX) | 48 | #if defined(LUA_USE_MACOSX) |
49 | #define LUA_USE_POSIX | 49 | #define LUA_USE_POSIX |
50 | #define LUA_USE_DLOPEN | 50 | #define LUA_USE_DLOPEN /* does not need -ldl */ |
51 | #define LUA_USE_READLINE /* needs some extra libraries */ | 51 | #define LUA_USE_READLINE /* needs an extra library: -lreadline */ |
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | 54 | ||
@@ -478,8 +478,11 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; }; | |||
478 | @@ check it dynamically. | 478 | @@ check it dynamically. |
479 | */ | 479 | */ |
480 | /* check for known architectures */ | 480 | /* check for known architectures */ |
481 | #if defined(__i386__) || defined(__i386) || defined(i386) | 481 | #if defined(__i386__) || defined(__i386) || defined(i386) || \ |
482 | defined (__x86_64) | ||
482 | #define LUA_IEEEENDIAN 0 | 483 | #define LUA_IEEEENDIAN 0 |
484 | #elif defined(__POWERPC__) | ||
485 | #define LUA_IEEEENDIAN 1 | ||
483 | #endif | 486 | #endif |
484 | 487 | ||
485 | #if !defined(LUA_IEEEENDIAN) /* { */ | 488 | #if !defined(LUA_IEEEENDIAN) /* { */ |