[INCLUDES]
authorAmine Khaldi <amine.khaldi@reactos.org>
Thu, 11 Sep 2014 10:50:15 +0000 (10:50 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Thu, 11 Sep 2014 10:50:15 +0000 (10:50 +0000)
* Define DECLSPEC_HOTPATCH to nothing until http://llvm.org/bugs/show_bug.cgi?id=20888 is fixed.
CORE-8516

svn path=/trunk/; revision=64115

reactos/include/crt/_mingw.h
reactos/include/reactos/wine/config.h

index 4ee69fc..203ac56 100644 (file)
@@ -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__))
index 837445d..25b7d07 100644 (file)
@@ -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__))