diff --git a/reactos/include/crt/_mingw.h b/reactos/include/crt/_mingw.h index 4ee69fcb46b..203ac566271 100644 --- a/reactos/include/crt/_mingw.h +++ b/reactos/include/crt/_mingw.h @@ -217,7 +217,8 @@ allow GCC to optimize away some EH unwind code, at least in DW2 case. */ /* Define to a function attribute for Microsoft hotpatch assembly prefix. */ #ifndef DECLSPEC_HOTPATCH -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__clang__) +/* FIXME: http://llvm.org/bugs/show_bug.cgi?id=20888 */ #define DECLSPEC_HOTPATCH #else #define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__)) diff --git a/reactos/include/reactos/wine/config.h b/reactos/include/reactos/wine/config.h index 837445dd903..25b7d071a31 100644 --- a/reactos/include/reactos/wine/config.h +++ b/reactos/include/reactos/wine/config.h @@ -2,7 +2,8 @@ /* Define to a function attribute for Microsoft hotpatch assembly prefix. */ #ifndef DECLSPEC_HOTPATCH -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(__clang__) +/* FIXME: http://llvm.org/bugs/show_bug.cgi?id=20888 */ #define DECLSPEC_HOTPATCH #else #define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))