Make generated headers usable in both x86 and x64 mode in Visual Studio

This commit is contained in:
rustyx 2018-01-19 16:28:33 +01:00 committed by David Goldblatt
parent ed52d24f74
commit 83aa9880b7

View File

@ -5,7 +5,16 @@
#ifdef _WIN32
# include <windows.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
# include <sys/param.h>
# include <sys/mman.h>