summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2024-04-19 18:56:33 (GMT)
committerGitHub <noreply@github.com>2024-04-19 18:56:33 (GMT)
commitab99438900c26bdbbdfb411be43d1493f3b00ab7 (patch)
treeb1a83e337b9df0c4a103367cc945e43f0678c9e6 /Python
parent2aa11cca115add03f39cb6cd7299135ecf4d4d82 (diff)
downloadcpython-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.c3
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