[Supertux-Commit] r5172 - trunk/supertux

tuxdev at millhouse.dreamhost.com tuxdev at millhouse.dreamhost.com
Sat Nov 3 08:18:15 PDT 2007


Author: tuxdev
Date: 2007-11-03 08:18:15 -0700 (Sat, 03 Nov 2007)
New Revision: 5172

Modified:
   trunk/supertux/CMakeLists.txt
   trunk/supertux/config.h.cmake
Log:
Detect big-endianess and write it out to config.h

Modified: trunk/supertux/CMakeLists.txt
===================================================================
--- trunk/supertux/CMakeLists.txt	2007-11-02 16:52:27 UTC (rev 5171)
+++ trunk/supertux/CMakeLists.txt	2007-11-03 15:18:15 UTC (rev 5172)
@@ -59,6 +59,11 @@
 
 set(CMAKE_MODULE_PATH ${SUPERTUX_SOURCE_DIR}/mk/cmake ${CMAKE_MODULE_PATH})
 
+## Check endianess
+
+INCLUDE(TestBigEndian)
+TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
+
 ## Add lots of dependencies to compiler switches
 
 FIND_PACKAGE(SDL REQUIRED)

Modified: trunk/supertux/config.h.cmake
===================================================================
--- trunk/supertux/config.h.cmake	2007-11-02 16:52:27 UTC (rev 5171)
+++ trunk/supertux/config.h.cmake	2007-11-03 15:18:15 UTC (rev 5172)
@@ -19,4 +19,6 @@
 #define ICONV_CONST
 #endif
 
+#cmakedefine WORDS_BIGENDIAN
+
 #cmakedefine HAVE_OPENGL



More information about the Supertux-Commit mailing list