lua

A copy of the Lua development repository
Log | Files | Refs | README

commit da57477c3dd51f6eb9afc10546cb125e8ae4d57c
parent f39034889d010f6f81257dde9517a9ad4d021d1c
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 28 Oct 2010 13:18:01 -0200

added more platforms for ieeeendianess + small comments

Diffstat:
Mluaconf.h | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/luaconf.h b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.144 2010/10/26 19:32:19 roberto Exp roberto $ +** $Id: luaconf.h,v 1.145 2010/10/27 17:16:37 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -47,8 +47,8 @@ #if defined(LUA_USE_MACOSX) #define LUA_USE_POSIX -#define LUA_USE_DLOPEN -#define LUA_USE_READLINE /* needs some extra libraries */ +#define LUA_USE_DLOPEN /* does not need -ldl */ +#define LUA_USE_READLINE /* needs an extra library: -lreadline */ #endif @@ -478,8 +478,11 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; }; @@ check it dynamically. */ /* check for known architectures */ -#if defined(__i386__) || defined(__i386) || defined(i386) +#if defined(__i386__) || defined(__i386) || defined(i386) || \ + defined (__x86_64) #define LUA_IEEEENDIAN 0 +#elif defined(__POWERPC__) +#define LUA_IEEEENDIAN 1 #endif #if !defined(LUA_IEEEENDIAN) /* { */