Fix building GCC with 10.15 SDK

This commit is contained in:
Thomas Pöchtrager 2019-09-14 11:37:05 +02:00
parent 6d98ef2979
commit f4b0948abd
2 changed files with 19 additions and 0 deletions

View File

@ -260,6 +260,15 @@ if [ $(osxcross-cmp ${SDK_VERSION/u/} ">=" 10.7) -eq 1 ]; then
fi
fi
fi
if [ -f "usr/include/Availability.h" ]; then
if [ $(osxcross-cmp $SDK_VERSION "==" 10.15) -eq 1 ]; then
# 10.15 comes with a broken Availability.h header file
# which breaks building GCC
set +e
cat $PATCH_DIR/gcc_availability.h >> usr/include/Availability.h
set -e
fi
fi
popd &>/dev/null
echo ""
if [ $I386_SUPPORTED -eq 1 ]; then

View File

@ -0,0 +1,10 @@
#ifndef __AVAILABILITY_HACK__
#define __AVAILABILITY_HACK__
#ifndef __OSX_AVAILABLE_STARTING
#define __OSX_AVAILABLE_STARTING(...)
#define __OSX_AVAILABLE_BUT_DEPRECATED(...)
#define __OSX_AVAILABLE_BUT_DEPRECATED_MSG(...)
#endif
#endif