diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2024-04-19 18:56:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-19 18:56:33 (GMT) |
commit | ab99438900c26bdbbdfb411be43d1493f3b00ab7 (patch) | |
tree | b1a83e337b9df0c4a103367cc945e43f0678c9e6 /Python | |
parent | 2aa11cca115add03f39cb6cd7299135ecf4d4d82 (diff) | |
download | cpython-ab99438900c26bdbbdfb411be43d1493f3b00ab7.zip cpython-ab99438900c26bdbbdfb411be43d1493f3b00ab7.tar.gz cpython-ab99438900c26bdbbdfb411be43d1493f3b00ab7.tar.bz2 |
gh-114099: Modify preprocessor symbol usage to support older macOS SDKs (GH-118073)
Co-authored-by: Joshua Root jmr@macports.org
Diffstat (limited to 'Python')
-rw-r--r-- | Python/marshal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/marshal.c b/Python/marshal.c index 4274f90..4bd8bb1 100644 --- a/Python/marshal.c +++ b/Python/marshal.c @@ -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 |