I’m not sure if it is a bug.
_ROOT Version: 6.29.01
I use ale for code completer
after I upgrade to macOS latest
It shows
In file included from **/include/ROOT/RConfig.hxx:292:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityMacros.h:212:5: error: 'TARGET_OS_OSX' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#if TARGET_OS_OSX
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityMacros.h:214:7: error: 'TARGET_OS_MACCATALYST' is not defined, evaluates to 0 [-Werror,-Wundef-prefix=TARGET_OS_]
#elif TARGET_OS_MACCATALYST
^
at RConfig.hxx
line 291
#if defined(__APPLE__) /* MacOS X support, initially following FreeBSD */
# include <AvailabilityMacros.h>
# ifndef __CINT__
# include <TargetConditionals.h>
# endif
# define R__MACOSX
# define R__UNIX
it seem the TARGET_OS_OSX is defined in TargetConditionals.h
but AvailabilityMacros.h was write before TargetConditionals.h
should TargetConditionals.h write before AvailabilityMacros.h ?