summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/marshal.c13
-rw-r--r--Python/stdlib_module_names.h1
2 files changed, 11 insertions, 3 deletions
diff --git a/Python/marshal.c b/Python/marshal.c
index daec741..21d242b 100644
--- a/Python/marshal.c
+++ b/Python/marshal.c
@@ -14,6 +14,10 @@
#include "pycore_setobject.h" // _PySet_NextEntry()
#include "marshal.h" // Py_MARSHAL_VERSION
+#ifdef __APPLE__
+# include "TargetConditionals.h"
+#endif /* __APPLE__ */
+
/*[clinic input]
module marshal
[clinic start generated code]*/
@@ -33,11 +37,14 @@ module marshal
* #if defined(MS_WINDOWS) && defined(_DEBUG)
*/
#if defined(MS_WINDOWS)
-#define MAX_MARSHAL_STACK_DEPTH 1000
+# define MAX_MARSHAL_STACK_DEPTH 1000
#elif defined(__wasi__)
-#define MAX_MARSHAL_STACK_DEPTH 1500
+# define MAX_MARSHAL_STACK_DEPTH 1500
+// TARGET_OS_IPHONE covers any non-macOS Apple platform.
+#elif defined(__APPLE__) && TARGET_OS_IPHONE
+# define MAX_MARSHAL_STACK_DEPTH 1500
#else
-#define MAX_MARSHAL_STACK_DEPTH 2000
+# define MAX_MARSHAL_STACK_DEPTH 2000
#endif
#define TYPE_NULL '0'
diff --git a/Python/stdlib_module_names.h b/Python/stdlib_module_names.h
index 2445a5c..ac9d91b 100644
--- a/Python/stdlib_module_names.h
+++ b/Python/stdlib_module_names.h
@@ -38,6 +38,7 @@ static const char* _Py_stdlib_module_names[] = {
"_heapq",
"_imp",
"_io",
+"_ios_support",
"_json",
"_locale",
"_lsprof",