mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
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:
parent
a9f89a7d3b
commit
f695ae5730
@ -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<Jit64>(m_system);
|
||||
break;
|
||||
#endif
|
||||
#if _M_ARM_64
|
||||
#ifdef _M_ARM_64
|
||||
case PowerPC::CPUCore::JITARM64:
|
||||
m_jit = std::make_unique<JitArm64>(m_system);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user