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:
Mihai Moldovan 2016-09-30 07:23:59 +02:00 committed by TingPing
parent c79ce843f4
commit 65abf5c532
1 changed files with 1 additions and 1 deletions

View File

@ -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;