diff --git a/contrib/Open3DGC/o3dgcTimer.h b/contrib/Open3DGC/o3dgcTimer.h
index 00fe5b65321f2848b4b62ec1171928cd61ac5679..d9a2859683a8bbb514cba883c0edcd5a00a3d321 100644
--- a/contrib/Open3DGC/o3dgcTimer.h
+++ b/contrib/Open3DGC/o3dgcTimer.h
@@ -30,7 +30,7 @@ THE SOFTWARE.
 /* Thank you, Microsoft, for file WinDef.h with min/max redefinition. */
 #define NOMINMAX
 #include <windows.h>
-#elif __MACH__
+#elif __APPLE__
 #include <mach/clock.h>
 #include <mach/mach.h>
 #else
@@ -73,7 +73,7 @@ namespace o3dgc
         LARGE_INTEGER m_freq;
 
     };
-#elif __MACH__
+#elif __APPLE__
     class Timer
     {
     public: