mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-24 13:53:11 +00:00
Make generated headers usable in both x86 and x64 mode in Visual Studio
This commit is contained in:
@@ -5,7 +5,16 @@
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
# include "msvc_compat/windows_extra.h"
|
# include "msvc_compat/windows_extra.h"
|
||||||
|
# ifdef _WIN64
|
||||||
|
# if LG_VADDR <= 32
|
||||||
|
# error Generate the headers using x64 vcargs
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# if LG_VADDR > 32
|
||||||
|
# undef LG_VADDR
|
||||||
|
# define LG_VADDR 32
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
#else
|
#else
|
||||||
# include <sys/param.h>
|
# include <sys/param.h>
|
||||||
# include <sys/mman.h>
|
# include <sys/mman.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user