mirror of
https://github.com/facebook/zstd.git
synced 2025-03-06 16:56:49 +02:00
added __has_attribute() define for non-clang compilers
This commit is contained in:
parent
52ca7c6c56
commit
ad15c1b724
@ -64,6 +64,9 @@
|
||||
#endif
|
||||
|
||||
/* target attribute */
|
||||
#ifndef __has_attribute
|
||||
#define __has_attribute(x) 0 /* Compatibility with non-clang compilers. */
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define TARGET_ATTRIBUTE(target) __attribute__((__target__(target)))
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user