1 /* ---------------------------------------------------------------------------- 2 Copyright (c) 2018-2020, Microsoft Research, Daan Leijen 3 This is free software; you can redistribute it and/or modify it under the 4 terms of the MIT license. A copy of the license can be found in the file 5 "LICENSE" at the root of this distribution. 6 -----------------------------------------------------------------------------*/ 7 #ifndef _DEFAULT_SOURCE 8 #define _DEFAULT_SOURCE 9 #endif 10 #if defined(__sun) 11 // same remarks as os.c for the static's context. 12 #undef _XOPEN_SOURCE 13 #undef _POSIX_C_SOURCE 14 #endif 15 16 #include "mimalloc.h" 17 #include "mimalloc/internal.h" 18 19 // For a static override we create a single object file 20 // containing the whole library. If it is linked first 21 // it will override all the standard library allocation 22 // functions (on Unix's). 23 #include "alloc.c" // includes alloc-override.c 24 #include "alloc-aligned.c" 25 #include "alloc-posix.c" 26 #include "arena.c" 27 #include "bitmap.c" 28 #include "heap.c" 29 #include "init.c" 30 #include "options.c" 31 #include "os.c" 32 #include "page.c" // includes page-queue.c 33 #include "random.c" 34 #include "segment.c" 35 #include "segment-map.c" 36 #include "stats.c" 37 #include "prim/prim.c" 38 #if MI_OSX_ZONE 39 #include "prim/osx/alloc-override-zone.c" 40 #endif 41