Merge pull request #235 from agoode/cpp

Define "macintosh" and "Macintosh"
This commit is contained in:
Wolfgang Thaller 2024-04-12 09:29:11 -06:00 committed by GitHub
commit 1ed09307a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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"); \