Make generated headers usable in both x86 and x64 mode in Visual Studio
This commit is contained in:
parent
ed52d24f74
commit
83aa9880b7
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user