X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=util.c;h=b1d5c5ba37bc589e89611358fac2fd3c783e727d;hp=8a0758e8d2efa888cb89921df0ded32040ff27af;hb=4c1c1bc0519b666c92ce7bcab4c02c292d7cbfe7;hpb=56edc3db9c8d372227198d462f541f8d68e46649 diff --git a/util.c b/util.c index 8a0758e..b1d5c5b 100644 --- a/util.c +++ b/util.c @@ -58,7 +58,7 @@ const char *util_instr_str[VINSTR_END] = { * only required if big endian .. otherwise no need to swap * data. */ -#if PLATFORM_BYTE_ORDER == GMQCC_BYTE_ORDER_BIG +#if PLATFORM_BYTE_ORDER == GMQCC_BYTE_ORDER_BIG || PLATFORM_BYTE_ORDER == -1 static GMQCC_INLINE void util_swap16(uint16_t *d, size_t l) { while (l--) { d[l] = (d[l] << 8) | (d[l] >> 8);