From fae5933ad614ca8c2559f499ebe16b518594cca3 Mon Sep 17 00:00:00 2001 From: Yuri Kunde Schlesner Date: Thu, 7 May 2015 18:17:33 -0300 Subject: Common: Add proper macros to test for architecture pointer size The old system of just defining macros available in some other platform was susceptible to silently using the wrong code if you forgot to include a particular header. This fixes a crash on non-Windows platforms introduced by e1fbac3ca13d37d2625c11d30cfdece4327b446b. --- src/common/hash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/hash.cpp') diff --git a/src/common/hash.cpp b/src/common/hash.cpp index b0b3613f..e2364d70 100644 --- a/src/common/hash.cpp +++ b/src/common/hash.cpp @@ -103,7 +103,7 @@ u32 HashEctor(const u8* ptr, int length) } -#ifdef _M_X64 +#if EMU_ARCH_BITS == 64 //----------------------------------------------------------------------------- // Block read - if your platform needs to do endian-swapping or can only -- cgit v1.2.3