From 1670c4421f6f2c3a08c21d81eef749ec956af65c Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Sun, 13 May 2018 11:34:45 +0100 Subject: Port #3732 from Citra: "common: Fix compilation on ARM" --- src/common/swap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/swap.h') diff --git a/src/common/swap.h b/src/common/swap.h index fc7af4280..32af0b6ac 100644 --- a/src/common/swap.h +++ b/src/common/swap.h @@ -69,7 +69,7 @@ inline u32 swap32(u32 _data) { inline u64 swap64(u64 _data) { return _byteswap_uint64(_data); } -#elif ARCHITECTURE_ARM +#elif defined(ARCHITECTURE_ARM) && (__ARM_ARCH >= 6) inline u16 swap16(u16 _data) { u32 data = _data; __asm__("rev16 %0, %1\n" : "=l"(data) : "l"(data)); -- cgit v1.2.3