From 6e10f8fad3e23f97a2be3b46f8038094284cd068 Mon Sep 17 00:00:00 2001 From: Chip Davis Date: Wed, 11 Sep 2019 10:34:23 -0500 Subject: [PATCH] include: Pick up the ms_hook_prologue attribute for Clang, too. Signed-off-by: Chip Davis Signed-off-by: Alexandre Julliard --- include/winnt.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/winnt.h b/include/winnt.h index 67d33f0d78f..9c4174f310d 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -163,7 +163,11 @@ extern "C" { # define DECLSPEC_HIDDEN #endif -#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6))) && (defined(__i386__) || defined(__x86_64__)) +#ifndef __has_attribute +# define __has_attribute(x) 0 +#endif + +#if ((defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 6)))) || __has_attribute(ms_hook_prologue)) && (defined(__i386__) || defined(__x86_64__)) #define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__)) #else #define DECLSPEC_HOTPATCH