mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-19 12:10:19 +00:00
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:
@@ -78,7 +78,7 @@ get_os (void)
|
|||||||
static char *
|
static char *
|
||||||
get_os_fallback (void)
|
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,
|
SInt32 ver_major = 0,
|
||||||
ver_minor = 0,
|
ver_minor = 0,
|
||||||
ver_patch = 0;
|
ver_patch = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user