Fix macOS version detection macros again

This commit is contained in:
Michał Janiszewski 2017-05-05 10:37:41 +02:00 committed by GitHub
parent 7fc9bf62ce
commit 03d1115425
1 changed files with 1 additions and 1 deletions

View File

@ -777,7 +777,7 @@ uint32 platform_get_ticks()
{
#ifdef _WIN32
return GetTickCount();
#elif defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101200)
#elif defined(__APPLE__) && (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200)
return (uint32)(((mach_absolute_time() * _mach_base_info.numer) / _mach_base_info.denom) / 1000000);
#else
struct timespec ts;