diff options
author | Michael Dickens <mlk@alum.mit.edu> | 2014-06-16 12:59:46 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-06-26 14:34:57 -0400 |
commit | 5a9acd9f3803dc17ab7d1099fd7473d209b74351 (patch) | |
tree | 5631ef1ee664fab8fe62dfd9e229bc08f73724f6 /gnuradio-runtime/include/gnuradio/attributes.h | |
parent | c138442d414168b681c0d4900906360a27b4c8c3 (diff) |
add attributes for clang compiler
Diffstat (limited to 'gnuradio-runtime/include/gnuradio/attributes.h')
-rw-r--r-- | gnuradio-runtime/include/gnuradio/attributes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gnuradio-runtime/include/gnuradio/attributes.h b/gnuradio-runtime/include/gnuradio/attributes.h index 5baa52e7d3..3d2e764cd5 100644 --- a/gnuradio-runtime/include/gnuradio/attributes.h +++ b/gnuradio-runtime/include/gnuradio/attributes.h @@ -37,6 +37,13 @@ # define __GR_ATTR_EXPORT # define __GR_ATTR_IMPORT # endif +#elif defined __clang__ +# define __GR_ATTR_ALIGNED(x) __attribute__((aligned(x))) +# define __GR_ATTR_UNUSED __attribute__((unused)) +# define __GR_ATTR_INLINE __attribute__((always_inline)) +# define __GR_ATTR_DEPRECATED __attribute__((deprecated)) +# define __GR_ATTR_EXPORT __attribute__((visibility("default"))) +# define __GR_ATTR_IMPORT __attribute__((visibility("default"))) #elif _MSC_VER # define __GR_ATTR_ALIGNED(x) __declspec(align(x)) # define __GR_ATTR_UNUSED |