From 6b053a63cb10395d310a043b91bd421656446e78 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 27 Oct 2010 15:16:37 -0200 Subject: added check for architectures with known endianess (only i386 now) --- luaconf.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/luaconf.h b/luaconf.h index 59ee71af..3c9774d7 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.143 2010/09/07 19:21:39 roberto Exp roberto $ +** $Id: luaconf.h,v 1.144 2010/10/26 19:32:19 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -477,6 +477,10 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; }; @@ (0 for little endian, 1 for big endian); if not defined, Lua will @@ check it dynamically. */ +/* check for known architectures */ +#if defined(__i386__) || defined(__i386) || defined(i386) +#define LUA_IEEEENDIAN 0 +#endif #if !defined(LUA_IEEEENDIAN) /* { */ #define LUAI_EXTRAIEEE \ -- cgit v1.2.3-55-g6feb