include: Pick up the ms_hook_prologue attribute for Clang, too.
Signed-off-by: Chip Davis <cdavis@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
34bd6a9cf3
commit
6e10f8fad3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue