diff options
author | Halton Huo <halton.huo@gmail.com> | 2019-01-11 05:31:07 +0300 |
---|---|---|
committer | Davide Beatrici <davidebeatrici@gmail.com> | 2019-09-30 07:48:37 +0300 |
commit | 5e338f86bc29ff9de49a274ae6cbc0c21cdc1159 (patch) | |
tree | 73cc54f6668c43d0f0549868b39dbe83fe2489a8 | |
parent | 386f5270d2efc6eddd0eb645f517122b2773228f (diff) |
Fixes #74
-rw-r--r-- | src/hde/hde32.c | 4 | ||||
-rw-r--r-- | src/trampoline.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/hde/hde32.c b/src/hde/hde32.c index 08fa25b..3a3556a 100644 --- a/src/hde/hde32.c +++ b/src/hde/hde32.c @@ -10,6 +10,10 @@ #include "hde32.h" #include "table32.h" +#ifdef _MSC_VER +#include <intrin.h> +#endif + unsigned int hde32_disasm(const void *code, hde32s *hs) { uint8_t x, c, *p = (uint8_t *)code, cflags, opcode, pref = 0; diff --git a/src/trampoline.c b/src/trampoline.c index f608e6d..77b6d76 100644 --- a/src/trampoline.c +++ b/src/trampoline.c @@ -28,6 +28,10 @@ #include <windows.h> +#ifdef _MSC_VER +#include <intrin.h> +#endif + #ifndef ARRAYSIZE #define ARRAYSIZE(A) (sizeof(A)/sizeof((A)[0])) #endif |