From 8c8a31f4badbcf0a49b34f6d45b8236eda9d2cbc Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Mon, 5 Dec 2016 14:37:38 +0900 Subject: Check the CPU architecture in hde32.c/hde64.c. Support predefined macros of GCC in addition to MSVC. --- src/hde/hde32.c | 4 ++-- src/hde/hde64.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hde/hde32.c b/src/hde/hde32.c index e191f20..08fa25b 100644 --- a/src/hde/hde32.c +++ b/src/hde/hde32.c @@ -5,7 +5,7 @@ * */ -#ifdef _M_IX86 +#if defined(_M_IX86) || defined(__i386__) #include "hde32.h" #include "table32.h" @@ -323,4 +323,4 @@ unsigned int hde32_disasm(const void *code, hde32s *hs) return (unsigned int)hs->len; } -#endif // _M_IX86 +#endif // defined(_M_IX86) || defined(__i386__) diff --git a/src/hde/hde64.c b/src/hde/hde64.c index f432fc0..c23e2fc 100644 --- a/src/hde/hde64.c +++ b/src/hde/hde64.c @@ -5,7 +5,7 @@ * */ -#ifdef _M_X64 +#if defined(_M_X64) || defined(__x86_64__) #include "hde64.h" #include "table64.h" @@ -334,4 +334,4 @@ unsigned int hde64_disasm(const void *code, hde64s *hs) return (unsigned int)hs->len; } -#endif // _M_X64 +#endif // defined(_M_X64) || defined(__x86_64__) -- cgit v1.2.3