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:
authorbecrux <tony@becrux.com>2017-05-26 21:58:05 +0300
committerbecrux <tony@becrux.com>2017-05-26 21:58:05 +0300
commit23cad5fafe132095957745e506530c4a684e3718 (patch)
tree9763eeeba4810e91cb3ab95fe862ddc4e0c09b00
parent8fda4f5481fed5797dc2651cd91e238e9b3928c6 (diff)
Added CLang support
-rw-r--r--src/trampoline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trampoline.c b/src/trampoline.c
index ac37f0f..f608e6d 100644
--- a/src/trampoline.c
+++ b/src/trampoline.c
@@ -148,7 +148,7 @@ BOOL CreateTrampolineFunction(PTRAMPOLINE ct)
PUINT32 pRelAddr;
// Avoid using memcpy to reduce the footprint.
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) || defined(__clang__)
memcpy(instBuf, (LPBYTE)pOldInst, copySize);
#else
__movsb(instBuf, (LPBYTE)pOldInst, copySize);
@@ -273,7 +273,7 @@ BOOL CreateTrampolineFunction(PTRAMPOLINE ct)
ct->nIP++;
// Avoid using memcpy to reduce the footprint.
-#ifndef _MSC_VER
+#if !defined(_MSC_VER) || defined(__clang__)
memcpy((LPBYTE)ct->pTrampoline + newPos, pCopySrc, copySize);
#else
__movsb((LPBYTE)ct->pTrampoline + newPos, pCopySrc, copySize);