aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-27 15:16:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-10-27 15:16:37 -0200
commit6b053a63cb10395d310a043b91bd421656446e78 (patch)
treed7779ce6a2c59f0d0644e4545c59a8ad7c861242
parent572e5e6b282418b134e4d3712e2ab8058e13a2c9 (diff)
downloadlua-6b053a63cb10395d310a043b91bd421656446e78.tar.gz
lua-6b053a63cb10395d310a043b91bd421656446e78.tar.bz2
lua-6b053a63cb10395d310a043b91bd421656446e78.zip
added check for architectures with known endianess (only i386 now)
-rw-r--r--luaconf.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/luaconf.h b/luaconf.h
index 59ee71af..3c9774d7 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.143 2010/09/07 19:21:39 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.144 2010/10/26 19:32:19 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*/
@@ -477,6 +477,10 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; };
477@@ (0 for little endian, 1 for big endian); if not defined, Lua will 477@@ (0 for little endian, 1 for big endian); if not defined, Lua will
478@@ check it dynamically. 478@@ check it dynamically.
479*/ 479*/
480/* check for known architectures */
481#if defined(__i386__) || defined(__i386) || defined(i386)
482#define LUA_IEEEENDIAN 0
483#endif
480 484
481#if !defined(LUA_IEEEENDIAN) /* { */ 485#if !defined(LUA_IEEEENDIAN) /* { */
482#define LUAI_EXTRAIEEE \ 486#define LUAI_EXTRAIEEE \