From: <tz...@us...> - 2009-04-02 14:19:14
|
Revision: 2961 http://freeorion.svn.sourceforge.net/freeorion/revision/?rev=2961&view=rev Author: tzlaine Date: 2009-04-02 14:19:09 +0000 (Thu, 02 Apr 2009) Log Message: ----------- Changed the macro used to check for endianness in Serialize.cpp from OGRE_CONFIG_LITTLE_ENDIAN to BOOST_LITTLE_ENDIAN, so the server can be built on Linux systems without any dependencies on Ogre. Modified Paths: -------------- trunk/FreeOrion/util/Serialize.cpp Modified: trunk/FreeOrion/util/Serialize.cpp =================================================================== --- trunk/FreeOrion/util/Serialize.cpp 2009-04-01 17:39:44 UTC (rev 2960) +++ trunk/FreeOrion/util/Serialize.cpp 2009-04-02 14:19:09 UTC (rev 2961) @@ -21,6 +21,7 @@ #endif #include <boost/static_assert.hpp> +#include <boost/detail/endian.hpp> #include <boost/serialization/export.hpp> #include <boost/serialization/deque.hpp> #include <boost/serialization/list.hpp> @@ -62,7 +63,7 @@ // some endianness and size checks to ensure portability of binary save files; of one or more of these fails, it means // that FreeOrion is not supported on your platform/compiler pair, and must be modified to provide data of the // appropriate size(s). -#if !defined(OGRE_CONFIG_LITTLE_ENDIAN) && !defined(_MSC_VER) +#ifndef BOOST_LITTLE_ENDIAN # error "Incompatible endianness for binary serialization." #endif BOOST_STATIC_ASSERT(sizeof(char) == 1); |