diff --git a/libsrc/core/utils.hpp b/libsrc/core/utils.hpp index 79d919c09..1669fa1f3 100644 --- a/libsrc/core/utils.hpp +++ b/libsrc/core/utils.hpp @@ -11,7 +11,7 @@ #include "ngcore_api.hpp" // for NGCORE_API and CPU arch macros -#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM64) +#if defined(__APPLE__) && !defined(NETGEN_ARCH_AMD64) #include #endif @@ -62,7 +62,7 @@ namespace ngcore inline TTimePoint GetTimeCounter() noexcept { -#if defined(__APPLE__) && defined(NETGEN_ARCH_ARM64) +#if defined(__APPLE__) && !defined(NETGEN_ARCH_AMD64) return mach_absolute_time(); #elif defined(NETGEN_ARCH_AMD64) return __rdtsc();