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.
This commit is contained in:
Lioncash 2024-01-23 16:42:33 -05:00
parent a9f89a7d3b
commit f695ae5730
1 changed files with 4 additions and 4 deletions

View File

@ -32,11 +32,11 @@
#include "Core/PowerPC/Profiler.h" #include "Core/PowerPC/Profiler.h"
#include "Core/System.h" #include "Core/System.h"
#if _M_X86_64 #ifdef _M_X86_64
#include "Core/PowerPC/Jit64/Jit.h" #include "Core/PowerPC/Jit64/Jit.h"
#endif #endif
#if _M_ARM_64 #ifdef _M_ARM_64
#include "Core/PowerPC/JitArm64/Jit.h" #include "Core/PowerPC/JitArm64/Jit.h"
#endif #endif
@ -61,12 +61,12 @@ CPUCoreBase* JitInterface::InitJitCore(PowerPC::CPUCore core)
{ {
switch (core) switch (core)
{ {
#if _M_X86_64 #ifdef _M_X86_64
case PowerPC::CPUCore::JIT64: case PowerPC::CPUCore::JIT64:
m_jit = std::make_unique<Jit64>(m_system); m_jit = std::make_unique<Jit64>(m_system);
break; break;
#endif #endif
#if _M_ARM_64 #ifdef _M_ARM_64
case PowerPC::CPUCore::JITARM64: case PowerPC::CPUCore::JITARM64:
m_jit = std::make_unique<JitArm64>(m_system); m_jit = std::make_unique<JitArm64>(m_system);
break; break;