From 2ee9742ae8afe74453f282dfa08cad08de4cfc6d Mon Sep 17 00:00:00 2001 From: AZero13 Date: Sun, 14 Dec 2025 15:04:05 -0500 Subject: [PATCH] gh-142721: Use the correct macros defined in TargerConditionals for Apple mach/vm_statistics.h was always included because #if !TARGET_IOS_IPHONE && !TARGET_IOS_SIMULATOR resolved to true, always. --- .../next/macOS/2025-12-14-15-05-10.gh-issue-142721.ZpCaPm.rst | 1 + Objects/mimalloc/prim/unix/prim.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/macOS/2025-12-14-15-05-10.gh-issue-142721.ZpCaPm.rst diff --git a/Misc/NEWS.d/next/macOS/2025-12-14-15-05-10.gh-issue-142721.ZpCaPm.rst b/Misc/NEWS.d/next/macOS/2025-12-14-15-05-10.gh-issue-142721.ZpCaPm.rst new file mode 100644 index 00000000000000..cb42da0bcb23c7 --- /dev/null +++ b/Misc/NEWS.d/next/macOS/2025-12-14-15-05-10.gh-issue-142721.ZpCaPm.rst @@ -0,0 +1 @@ +Corrected the macro names for conditional Apple targets. diff --git a/Objects/mimalloc/prim/unix/prim.c b/Objects/mimalloc/prim/unix/prim.c index 1598ebabf0a4da..1dcca1516ac4eb 100644 --- a/Objects/mimalloc/prim/unix/prim.c +++ b/Objects/mimalloc/prim/unix/prim.c @@ -39,7 +39,7 @@ terms of the MIT license. A copy of the license can be found in the file #endif #elif defined(__APPLE__) #include - #if !TARGET_IOS_IPHONE && !TARGET_IOS_SIMULATOR + #if !TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR #include #endif #elif defined(__FreeBSD__) || defined(__DragonFly__)