diff options
author | driver1998 <driver1998.ms@outlook.com> | 2019-04-28 03:21:44 +0800 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2019-04-27 15:21:44 -0400 |
commit | 06bf1a9deaa781b711c4d3718561e7faf303a842 (patch) | |
tree | 63e34c4cedb450f41ffb5c73206eede5e163698f /src/x86 | |
parent | db5706ff285c476aa3c0f811ff2b188319ac3ebe (diff) | |
download | libffi-06bf1a9deaa781b711c4d3718561e7faf303a842.tar.gz |
fix x86/x64 MSVC build (#487)
Diffstat (limited to 'src/x86')
-rw-r--r-- | src/x86/ffi.c | 2 | ||||
-rw-r--r-- | src/x86/ffiw64.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/x86/ffi.c b/src/x86/ffi.c index c6c7d2b..883cc4a 100644 --- a/src/x86/ffi.c +++ b/src/x86/ffi.c @@ -29,7 +29,7 @@ DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------- */ -#ifdef __i386__ +#if defined(__i386__) || defined(_M_IX86) #include <ffi.h> #include <ffi_common.h> #include <stdint.h> diff --git a/src/x86/ffiw64.c b/src/x86/ffiw64.c index ca4d3ca..b68f69c 100644 --- a/src/x86/ffiw64.c +++ b/src/x86/ffiw64.c @@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------- */ -#ifdef __x86_64__ +#if defined(__x86_64__) || defined(_M_AMD64) #include <ffi.h> #include <ffi_common.h> #include <stdlib.h> |