summaryrefslogtreecommitdiff
path: root/lang/lua52/files/patch-src__luaconf.h
blob: 350769c977e7ab7c9291d12fa17b2afa4eae8ac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- src/luaconf.h.old
+++ src/luaconf.h
@@ -519,10 +519,15 @@
 #define LUA_IEEE754TRICK
 #define LUA_IEEEENDIAN		0
 
-#elif defined(__POWERPC__) || defined(__ppc__)			/* }{ */
+#elif defined(__powerpc__)
 
 #define LUA_IEEE754TRICK
+
+#ifdef __LITTLE_ENDIAN__
+#define LUA_IEEEENDIAN		0
+#else
 #define LUA_IEEEENDIAN		1
+#endif
 
 #else								/* }{ */