mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 22:31:36 +00:00
On platforms that the byte order check fails on the runtime test is concluded instead. It still needs these swap functions at compile time since the runtime test has to run. This fixes a FTBFS on BE selected ARMs.
This commit is contained in:
parent
0db41f4279
commit
a371c4ee27
1 changed files with 1 additions and 1 deletions
2
util.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue