yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflict

On Apple platforms, FALSE and TRUE are defined as macros by
<mach/boolean.h>, which is included by various system headers.

Note that there appear to be no actual users of the names to fix up.
This commit is contained in:
comex 2020-08-31 10:22:03 -04:00
parent f2f346e110
commit a6e6cd5788
1 changed files with 7 additions and 5 deletions

View File

@ -72,11 +72,13 @@ public:
struct RenderEnable {
enum class Mode : u32 {
FALSE = 0,
TRUE = 1,
CONDITIONAL = 2,
RENDER_IF_EQUAL = 3,
RENDER_IF_NOT_EQUAL = 4,
// Note: This uses Pascal case in order to avoid the identifiers
// FALSE and TRUE, which are reserved on Darwin.
False = 0,
True = 1,
Conditional = 2,
RenderIfEqual = 3,
RenderIfNotEqual = 4,
};
PackedGPUVAddr address;