mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
memory_manager: add support for MacOS & Windows to the new size tracking system
This commit is contained in:
parent
a24b5a64e1
commit
4431fd17ce
|
@ -16,10 +16,17 @@ Copyright (c) 2015 Microsoft Corporation
|
|||
#ifdef __GLIBC__
|
||||
# include <malloc.h>
|
||||
# define HAS_MALLOC_USABLE_SIZE
|
||||
#endif
|
||||
#ifdef __FreeBSD__
|
||||
#elif defined(__APPLE__)
|
||||
# include <malloc/malloc.h>
|
||||
# define HAS_MALLOC_USABLE_SIZE
|
||||
# define malloc_usable_size malloc_size
|
||||
#elif defined(__FreeBSD__)
|
||||
# include <malloc_np.h>
|
||||
# define HAS_MALLOC_USABLE_SIZE
|
||||
#elif defined(_WINDOWS)
|
||||
# include <malloc.h>
|
||||
# define HAS_MALLOC_USABLE_SIZE
|
||||
# define malloc_usable_size _msize
|
||||
#endif
|
||||
|
||||
// The following two function are automatically generated by the mk_make.py script.
|
||||
|
|
Loading…
Reference in a new issue