diff --git a/chrono/datetime.cpp b/chrono/datetime.cpp index 205e2d2..88040cf 100644 --- a/chrono/datetime.cpp +++ b/chrono/datetime.cpp @@ -277,7 +277,7 @@ const char *DateTime::printDayOfWeek(DayOfWeek dayOfWeek, bool abbreviation) return ""; } -#if defined(PLATFORM_UNIX) +#if defined(PLATFORM_UNIX) && !defined(PLATFORM_MAC) /*! * \brief Returns a DateTime object that is set to the current date and time on this computer, expressed as the GMT time. * \remarks diff --git a/chrono/datetime.h b/chrono/datetime.h index ebd223e..b423bfa 100644 --- a/chrono/datetime.h +++ b/chrono/datetime.h @@ -87,7 +87,7 @@ public: static constexpr DateTime unixEpochStart(); static DateTime now(); static DateTime gmtNow(); -#if defined(PLATFORM_UNIX) +#if defined(PLATFORM_UNIX) && !defined(PLATFORM_MAC) static DateTime exactGmtNow(); #endif constexpr static bool isLeapYear(int year);