From e9e3a164189a779ff5bbe9df212ca4f726ff58d7 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 4 Aug 2011 13:49:44 +0100 Subject: [PATCH 1/2] q_platform: declare CopyShortSwap, CopyLongSwap This fixes failure to build from source on big-endian platforms. Bug: https://bugzilla.icculus.org/show_bug.cgi?id=5155 --- code/qcommon/q_platform.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index 14a5c7c..8bc2984 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -348,6 +348,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA //endianness +void CopyShortSwap (void *dest, void *src); +void CopyLongSwap (void *dest, void *src); short ShortSwap (short l); int LongSwap (int l); float FloatSwap (const float *f); -- 1.7.5.4