This commit is contained in:
Daan Leijen 2023-03-20 11:30:52 -07:00
parent 287010578d
commit 65402836ae
4 changed files with 6 additions and 5 deletions

View file

@ -2,7 +2,8 @@
This is the portability layer where all primitives needed from the OS are defined.
- `prim.h`: API definition
- `prim.c`: Selects one of `unix/prim.c`, `wasi/prim.c`, or `windows/prim.c` depending on the host platform.
- `include/mimalloc/prim.h`: primitive portability API definition.
- `prim.c`: Selects one of `unix/prim.c`, `wasi/prim.c`, or `windows/prim.c` depending on the host platform
(and on macOS, `osx/prim.c` defers to `unix/prim.c`).
Note: still work in progress, there may still be places in the sources that still depend on OS ifdef's.