From 23cad5fafe132095957745e506530c4a684e3718 Mon Sep 17 00:00:00 2001 From: becrux Date: Fri, 26 May 2017 20:58:05 +0200 Subject: [PATCH] Added CLang support --- src/trampoline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trampoline.c b/src/trampoline.c index ac37f0f1..f608e6d2 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);