From 0ab6c59fbe44145e516afeac94ca40174fc16554 Mon Sep 17 00:00:00 2001 From: mrfixit2001 <38842252+mrfixit2001@users.noreply.github.com> Date: Mon, 26 Nov 2018 14:59:14 -0500 Subject: [PATCH] Avoid possible compile error: conflicting defs In some cases, depending on the build flags, these two lines can be actively compiled at the same time, resulting in a conflicting definitions error: https://github.com/hrydgard/ppsspp/blob/master/GPU/Common/DrawEngineCommon.h#L41 https://github.com/hrydgard/ppsspp/blob/master/GPU/Common/TextureDecoder.h#L88 I believe all that's necessary here is to add these "or" clauses to avoid it and safeguard against the error. --- GPU/Common/TextureDecoder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPU/Common/TextureDecoder.h b/GPU/Common/TextureDecoder.h index 30054168bd..b151a40d03 100644 --- a/GPU/Common/TextureDecoder.h +++ b/GPU/Common/TextureDecoder.h @@ -49,7 +49,7 @@ void DoUnswizzleTex16Basic(const u8 *texptr, u32 *ydestp, int bxc, int byc, u32 #define DoReliableHash32 XXH32 #define DoReliableHash64 XXH64 -#ifdef _M_X64 +#ifdef _M_X64 || defined(ARM64) #define DoReliableHash XXH64 typedef u64 ReliableHashType; #else @@ -58,7 +58,7 @@ typedef u32 ReliableHashType; #endif // For ARM64, NEON is mandatory, so we also statically link. -#elif PPSSPP_ARCH(ARM64) +#elif PPSSPP_ARCH(ARM64) || defined(ARM64) #define DoQuickTexHash QuickTexHashNEON #define StableQuickTexHash QuickTexHashNEON #define DoUnswizzleTex16 DoUnswizzleTex16NEON