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__)