diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-10-15 00:56:04 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-10-15 00:56:04 +0200 |
commit | 069521e2d5d5568739c7e8d7db31859bb88965a6 (patch) | |
tree | 83e0a2a15ab9fd55576b0019fdddfe58074ce036 /kernel/yosys.h | |
parent | 0352dbfd65072f42824852b2f5b925e7d9865a90 (diff) | |
download | yosys-069521e2d5d5568739c7e8d7db31859bb88965a6.tar.gz yosys-069521e2d5d5568739c7e8d7db31859bb88965a6.tar.bz2 yosys-069521e2d5d5568739c7e8d7db31859bb88965a6.zip |
Define empty __attribute__ macro for non-gcc, non-clang compilers
Diffstat (limited to 'kernel/yosys.h')
-rw-r--r-- | kernel/yosys.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/yosys.h b/kernel/yosys.h index 5a37dd3c5..37d3e52f4 100644 --- a/kernel/yosys.h +++ b/kernel/yosys.h @@ -77,6 +77,10 @@ # define FINAL #endif +#if !defined(__GNUC__) && !defined(__clang__) +# define __attribute__(...) +#endif + YOSYS_NAMESPACE_BEGIN namespace RTLIL { |