• Jachin's avatar
    Fix compile on macOS 13 (#12611) · a2b0701d
    Jachin authored
    Use the __MAC_OS_X_VERSION_MIN_REQUIRED macro to detect the
    macOS system version instead of using MAC_OS_X_VERSION_10_6.
    
    From MacOSX14.0.sdk, the default definitions of MAC_OS_X_VERSION_xxx have
    been removed in usr/include/AvailabilityMacros.h. It includes AvailabilityVersions.h,
    where the following condition must be met:
    `#if (!defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)) || defined(_DARWIN_C_SOURCE)`
    Only then will MAC_OS_X_VERSION_xxx be defined.
    However, in the project, _DARWIN_C_SOURCE is not defined, which leads to the
    loss of the definition for MAC_OS_X_VERSION_10_6.
    a2b0701d
debug.c 99.1 KB