sysinfo: fixup 49758cafba
. (#1827)
MAC_OS_X_VERSION_MAX_ALLOWED reflects the currently running OS X version more closely than MAC_OS_X_VERSION_MIN_REQUIRED, given it's defined as max(current_version, MAC_OS_X_VERSION_MIN_REQUIRED). Additionally, we should check if MAC_OS_X_VERSION_10_9 is actually defined, otherwise the whole macro logic breaks apart.
This commit is contained in:
parent
c79ce843f4
commit
65abf5c532
@ -78,7 +78,7 @@ get_os (void)
|
||||
static char *
|
||||
get_os_fallback (void)
|
||||
{
|
||||
#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_9
|
||||
#if !defined (MAC_OS_X_VERSION_10_9) || MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_9
|
||||
SInt32 ver_major = 0,
|
||||
ver_minor = 0,
|
||||
ver_patch = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user