mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-03 12:27:17 +03:00
Detect LG_SIZEOF_PTR depending on MSVC platform target
This commit is contained in:
parent
effaf7d40f
commit
46e0b2301c
2 changed files with 19 additions and 6 deletions
|
|
@ -33,5 +33,13 @@
|
|||
*/
|
||||
#undef JEMALLOC_USE_CXX_THROW
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# ifdef _WIN64
|
||||
# define LG_SIZEOF_PTR_WIN 3
|
||||
# else
|
||||
# define LG_SIZEOF_PTR_WIN 2
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* sizeof(void *) == 2^LG_SIZEOF_PTR. */
|
||||
#undef LG_SIZEOF_PTR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue