From f695ae573084b4b2fa736737037e635f9c02f2c3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 23 Jan 2024 16:42:33 -0500 Subject: [PATCH] JitInterface: Use #ifdef instead of #if for platform testing \#if assumes the symbols will always be defined, but they aren't depending on the platform. --- Source/Core/Core/PowerPC/JitInterface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitInterface.cpp b/Source/Core/Core/PowerPC/JitInterface.cpp index d44a648fd6..ed60b4d489 100644 --- a/Source/Core/Core/PowerPC/JitInterface.cpp +++ b/Source/Core/Core/PowerPC/JitInterface.cpp @@ -32,11 +32,11 @@ #include "Core/PowerPC/Profiler.h" #include "Core/System.h" -#if _M_X86_64 +#ifdef _M_X86_64 #include "Core/PowerPC/Jit64/Jit.h" #endif -#if _M_ARM_64 +#ifdef _M_ARM_64 #include "Core/PowerPC/JitArm64/Jit.h" #endif @@ -61,12 +61,12 @@ CPUCoreBase* JitInterface::InitJitCore(PowerPC::CPUCore core) { switch (core) { -#if _M_X86_64 +#ifdef _M_X86_64 case PowerPC::CPUCore::JIT64: m_jit = std::make_unique(m_system); break; #endif -#if _M_ARM_64 +#ifdef _M_ARM_64 case PowerPC::CPUCore::JITARM64: m_jit = std::make_unique(m_system); break;