PowerPC: Use #ifdef instead of #if for platform testing

This way we don't assume these symbols are always defined.
This commit is contained in:
Lioncash 2024-01-23 16:47:40 -05:00
parent f695ae5730
commit 4ccc5178a6
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ struct PowerPCState
// lscbx // lscbx
u16 xer_stringctrl = 0; 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. // This member exists only for the purpose of an assertion that its offset <= 0x100.
std::tuple<> above_fits_in_first_0x100; std::tuple<> above_fits_in_first_0x100;
@ -234,7 +234,7 @@ struct PowerPCState
void UpdateFPRFSingle(float fvalue); void UpdateFPRFSingle(float fvalue);
}; };
#if _M_X86_64 #ifdef _M_X86_64
#ifdef __GNUC__ #ifdef __GNUC__
#pragma GCC diagnostic push #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Winvalid-offsetof" #pragma GCC diagnostic ignored "-Winvalid-offsetof"