Procházet zdrojové kódy

Merge pull request #5141 from comex/xx-true-false

maxwell_dma: Rename RenderEnable::Mode::FALSE and TRUE to avoid name conflict
Rodrigo Locatti před 5 roky
rodič
revize
88959b0047
1 změnil soubory, kde provedl 7 přidání a 5 odebrání
  1. 7 5
      src/video_core/engines/maxwell_dma.h

+ 7 - 5
src/video_core/engines/maxwell_dma.h

@@ -72,11 +72,13 @@ public:
 
 
     struct RenderEnable {
     struct RenderEnable {
         enum class Mode : u32 {
         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;
         PackedGPUVAddr address;