mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-114099: Modify preprocessor symbol usage to support older macOS SDKs (GH-118073)
Co-authored-by: Joshua Root jmr@macports.org
This commit is contained in:
parent
2aa11cca11
commit
ab99438900
4 changed files with 12 additions and 4 deletions
|
@ -42,7 +42,8 @@ module marshal
|
|||
#elif defined(__wasi__)
|
||||
# define MAX_MARSHAL_STACK_DEPTH 1500
|
||||
// TARGET_OS_IPHONE covers any non-macOS Apple platform.
|
||||
#elif defined(__APPLE__) && TARGET_OS_IPHONE
|
||||
// It won't be defined on older macOS SDKs
|
||||
#elif defined(__APPLE__) && defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
||||
# define MAX_MARSHAL_STACK_DEPTH 1500
|
||||
#else
|
||||
# define MAX_MARSHAL_STACK_DEPTH 2000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue