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

github.com/mumble-voip/minhook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hde/hde32.c4
-rw-r--r--src/trampoline.c4
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