summaryrefslogtreecommitdiff
path: root/Source/Core/Common/ArmCPUDetect.cpp
diff options
context:
space:
mode:
authorSkyler Saleh <skylersaleh@gmail.com>2021-04-17 16:50:24 -0700
committerSkyler Saleh <skylersaleh@gmail.com>2021-05-22 15:25:17 -0700
commit61448a9b2f5d83c665c7c39dc56b22bc3094c554 (patch)
tree93b1e4856a98d77e98022e5e83271f59fa53585e /Source/Core/Common/ArmCPUDetect.cpp
parent4542038cd0ec8359d9faa21699c85d025c5ec8ca (diff)
Apple M1: Refactor ArmCPUDetect.cpp
Merges two nested #ifndefs into a single #if around hw cap includes.
Diffstat (limited to 'Source/Core/Common/ArmCPUDetect.cpp')
-rw-r--r--Source/Core/Common/ArmCPUDetect.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Core/Common/ArmCPUDetect.cpp b/Source/Core/Common/ArmCPUDetect.cpp
index 1cee6ad77b..4100df9f82 100644
--- a/Source/Core/Common/ArmCPUDetect.cpp
+++ b/Source/Core/Common/ArmCPUDetect.cpp
@@ -8,15 +8,13 @@
#include <string>
#include <thread>
-#ifndef __APPLE__
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(__APPLE__)
#ifndef __FreeBSD__
#include <asm/hwcap.h>
#endif
#include <sys/auxv.h>
#include <unistd.h>
#endif
-#endif
#include <fmt/format.h>