summaryrefslogtreecommitdiff
path: root/src/common/hash.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-05-07 18:17:33 -0300
committerGravatar Yuri Kunde Schlesner2015-05-07 18:22:36 -0300
commitfae5933ad614ca8c2559f499ebe16b518594cca3 (patch)
tree352d4e078789f31408c8f8658ba84cc03c08cbcf /src/common/hash.cpp
parentMerge pull request #721 from yuriks/more-cleanups (diff)
downloadyuzu-fae5933ad614ca8c2559f499ebe16b518594cca3.tar.gz
yuzu-fae5933ad614ca8c2559f499ebe16b518594cca3.tar.xz
yuzu-fae5933ad614ca8c2559f499ebe16b518594cca3.zip
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.
Diffstat (limited to 'src/common/hash.cpp')
-rw-r--r--src/common/hash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/hash.cpp b/src/common/hash.cpp
index b0b3613f6..e2364d700 100644
--- a/src/common/hash.cpp
+++ b/src/common/hash.cpp
@@ -103,7 +103,7 @@ u32 HashEctor(const u8* ptr, int length)
103} 103}
104 104
105 105
106#ifdef _M_X64 106#if EMU_ARCH_BITS == 64
107 107
108//----------------------------------------------------------------------------- 108//-----------------------------------------------------------------------------
109// Block read - if your platform needs to do endian-swapping or can only 109// Block read - if your platform needs to do endian-swapping or can only