mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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:
@ -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"
|
||||||
|
Reference in New Issue
Block a user