Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/TsudaKageyu/minhook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTsuda Kageyu <tsuda.kageyu@gmail.com>2016-12-05 08:37:38 +0300
committerTsuda Kageyu <tsuda.kageyu@gmail.com>2016-12-05 08:37:38 +0300
commit8c8a31f4badbcf0a49b34f6d45b8236eda9d2cbc (patch)
tree77b261c47723bdf4ac18ce61262fcf7db7ebe61c
parentd91d6dabb197a726dd6936ec59eac3012413d330 (diff)
Check the CPU architecture in hde32.c/hde64.c.
Support predefined macros of GCC in addition to MSVC.
-rw-r--r--src/hde/hde32.c4
-rw-r--r--src/hde/hde64.c4
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__)