Compare commits

..

No commits in common. "7ec5788469487b3612aa6300a3e000ecfa2174bd" and "a9ed0adf3774e4a640a138033b6faa8163dcd6a3" have entirely different histories.

6 changed files with 6 additions and 12 deletions

View File

@ -59,8 +59,6 @@ if(USE_SYSTEM_ZLIB)
else()
message(FATAL_ERROR "Error! USE_SYSTEM_ZLIB is set but neccessary developer files are missing")
endif()
else()
include_directories(${CMAKE_SOURCE_DIR}/Engine/zlib)
endif()
# RAKE! Where to install the binaries.

View File

@ -56,7 +56,7 @@ typedef uint32_t UINT;
#endif
// TODO: add more architecture detection routines
#if (defined __hppa__) || (defined __m68k__) || (defined __s390x__) || (defined __sparc__) || __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ /* rcg03232004 */
#if __POWERPC__ || (defined __ppc64__) || (defined __alpha__) || (defined __sparc__) /* rcg03232004 */
#define PLATFORM_BIGENDIAN 1
#define PLATFORM_LITTLEENDIAN 0
#else
@ -65,7 +65,7 @@ typedef uint32_t UINT;
#endif
#if defined(__x86_64__) || defined(_M_X64) || defined(__aarch64__) || defined(_ARCH_PPC64) \
|| defined(_M_IA64) || defined(__IA64__) || defined(__e2k__) || defined(__alpha__) || defined(__loongarch__) || defined(__riscv) || defined(__s390x__) || (defined(__mips__) && _MIPS_SIM == _ABI64) || (defined(__sparc__) && defined(__arch64__))
|| defined(_M_IA64) || defined(__IA64__) || defined(__e2k__)
#define PLATFORM_64BIT 1
@ -759,9 +759,6 @@ inline __uint64 BYTESWAP64_unsigned(__uint64 x)
val = *((SLONG *) &uval);
}
/**
* BOOL is int32_t , just like SLONG
* so don't define the same function twice
static inline void BYTESWAP(BOOL &val)
{
// !!! FIXME: reinterpret_cast ?
@ -769,7 +766,6 @@ inline __uint64 BYTESWAP64_unsigned(__uint64 x)
BYTESWAP(uval);
val = *((BOOL *) &uval);
}
*/
static inline void BYTESWAP(FLOAT &val)
{

View File

@ -32,7 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
typedef unsigned char Byte; // !!! FIXME: not sure why I suddenly needed this typedef here.
#endif
#include <zlib.h>
#include <Engine/zlib/zlib.h>
extern CTCriticalSection zip_csLock; // critical section for access to zlib functions
#pragma pack(1)

View File

@ -18,7 +18,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <Engine/Base/Stream.h>
#include <Engine/Network/Compression.h>
#include <Engine/Base/Synchronization.h>
#include <zlib.h>
#include <Engine/zlib/zlib.h>
extern CTCriticalSection zip_csLock; // critical section for access to zlib functions

View File

@ -21,7 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
extern FLOAT mth_fCSGEpsilon;
#if defined __arm__ && defined __ARM_PCS_VFP
#ifdef __arm__
#define SPHERE_HACK
#endif

View File

@ -1534,7 +1534,7 @@ void CGame::UnpackHighScoreTable(SLONG slSize)
gm_ahseHighScores[i].hse_strPlayer = (const char*)pub;
pub += MAX_HIGHSCORENAME+1;
memcpy(&gm_ahseHighScores[i].hse_gdDifficulty, pub, sizeof(INDEX));
BYTESWAP((int&)gm_ahseHighScores[i].hse_gdDifficulty);
BYTESWAP(gm_ahseHighScores[i].hse_gdDifficulty);
pub += sizeof(INDEX);
memcpy(&gm_ahseHighScores[i].hse_tmTime , pub, sizeof(FLOAT));
BYTESWAP(gm_ahseHighScores[i].hse_tmTime);