added __has_attribute() define for non-clang compilers
This commit is contained in:
@@ -64,6 +64,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* target attribute */
|
/* target attribute */
|
||||||
|
#ifndef __has_attribute
|
||||||
|
#define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||||
|
#endif
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
# define TARGET_ATTRIBUTE(target) __attribute__((__target__(target)))
|
# define TARGET_ATTRIBUTE(target) __attribute__((__target__(target)))
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user