Define "macintosh" and "Macintosh"

See https://sourceforge.net/p/predef/wiki/OperatingSystems/.
This commit is contained in:
Adam Goode 2024-03-17 21:30:18 -04:00
parent 4ff2d7d902
commit 085ef7e333
2 changed files with 10 additions and 0 deletions

View File

@ -16,3 +16,11 @@
#undef CPP_SPEC
#define CPP_SPEC "-Wno-trigraphs"
#undef TARGET_OS_CPP_BUILTINS
#define TARGET_OS_CPP_BUILTINS() \
do \
{ \
builtin_define ("macintosh"); \
builtin_define ("Macintosh"); \
} \
while (0)

View File

@ -152,6 +152,8 @@
builtin_define ("__PPC__"); \
builtin_define ("__POWERPC__"); \
builtin_define ("__NATURAL_ALIGNMENT__"); \
builtin_define ("macintosh"); \
builtin_define ("Macintosh"); \
builtin_assert ("system=macos"); \
builtin_assert ("cpu=powerpc"); \
builtin_assert ("machine=powerpc"); \