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