Go to the documentation of this file.
22 #ifndef INCLUDED_GNURADIO_ATTRIBUTES_H
23 #define INCLUDED_GNURADIO_ATTRIBUTES_H
29 # define __GR_ATTR_ALIGNED(x) __attribute__((aligned(x)))
30 # define __GR_ATTR_UNUSED __attribute__((unused))
31 # define __GR_ATTR_INLINE __attribute__((always_inline))
32 # define __GR_ATTR_DEPRECATED __attribute__((deprecated))
34 # define __GR_ATTR_EXPORT __attribute__((visibility("default")))
35 # define __GR_ATTR_IMPORT __attribute__((visibility("default")))
37 # define __GR_ATTR_EXPORT
38 # define __GR_ATTR_IMPORT
41 # define __GR_ATTR_ALIGNED(x) __declspec(align(x))
42 # define __GR_ATTR_UNUSED
43 # define __GR_ATTR_INLINE __forceinline
44 # define __GR_ATTR_DEPRECATED __declspec(deprecated)
45 # define __GR_ATTR_EXPORT __declspec(dllexport)
46 # define __GR_ATTR_IMPORT __declspec(dllimport)
48 # define __GR_ATTR_ALIGNED(x)
49 # define __GR_ATTR_UNUSED
50 # define __GR_ATTR_INLINE
51 # define __GR_ATTR_DEPRECATED
52 # define __GR_ATTR_EXPORT
53 # define __GR_ATTR_IMPORT
59 #if defined(_MSC_VER) && !defined(__cplusplus) && !defined(inline)
60 # define inline __inline
67 # pragma warning(disable: 4251) // class 'A<T>' needs to have dll-interface to be used by clients of class 'B'
68 # pragma warning(disable: 4275) // non dll-interface class ... used as base for dll-interface class ...
69 # pragma warning(disable: 4244) // conversion from 'double' to 'float', possible loss of data
70 # pragma warning(disable: 4305) // 'initializing' : truncation from 'double' to 'float'
71 # pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)