mirror of
https://github.com/python/cpython.git
synced 2026-01-28 05:35:31 +00:00
gh-123826: Fix unused function warnings in mimalloc on NetBSD (GH-123827) (cherry picked from commit 4a6b1f179667e2a8c6131718eb78a15f726e047b) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Portability Primitives
This is the portability layer where all primitives needed from the OS are defined.
include/mimalloc/prim.h: primitive portability API definition.prim.c: Selects one ofunix/prim.c,wasi/prim.c, orwindows/prim.cdepending on the host platform (and on macOS,osx/prim.cdefers tounix/prim.c).
Note: still work in progress, there may still be places in the sources that still depend on OS ifdef's.