From 4ccc5178a6eb8a29367d920200a17c5569b79f54 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 23 Jan 2024 16:47:40 -0500 Subject: [PATCH] PowerPC: Use #ifdef instead of #if for platform testing This way we don't assume these symbols are always defined. --- Source/Core/Core/PowerPC/PowerPC.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/PowerPC.h b/Source/Core/Core/PowerPC/PowerPC.h index c473f20fd0..c0611ae916 100644 --- a/Source/Core/Core/PowerPC/PowerPC.h +++ b/Source/Core/Core/PowerPC/PowerPC.h @@ -160,7 +160,7 @@ struct PowerPCState // lscbx u16 xer_stringctrl = 0; -#if _M_X86_64 +#ifdef _M_X86_64 // This member exists only for the purpose of an assertion that its offset <= 0x100. std::tuple<> above_fits_in_first_0x100; @@ -234,7 +234,7 @@ struct PowerPCState void UpdateFPRFSingle(float fvalue); }; -#if _M_X86_64 +#ifdef _M_X86_64 #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Winvalid-offsetof"