123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- #ifndef foopulsegccmacrohfoo
- #define foopulsegccmacrohfoo
- #if defined(__GNUC__)
- #ifdef __MINGW32__
- #define PA_GCC_PRINTF_ATTR(a,b) __attribute__ ((format (__printf__, a, b)))
- #else
- #define PA_GCC_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b)))
- #endif
- #else
- #define PA_GCC_PRINTF_ATTR(a,b)
- #endif
- #if defined(__GNUC__) && (__GNUC__ >= 4)
- #define PA_GCC_SENTINEL __attribute__ ((sentinel))
- #else
- #define PA_GCC_SENTINEL
- #endif
- #ifdef __GNUC__
- #define PA_GCC_NORETURN __attribute__((noreturn))
- #else
- #define PA_GCC_NORETURN
- #endif
- #ifdef __GNUC__
- #define PA_GCC_UNUSED __attribute__ ((unused))
- #else
- #define PA_GCC_UNUSED
- #endif
- #ifdef __GNUC__
- #define PA_GCC_DESTRUCTOR __attribute__ ((destructor))
- #else
- #define PA_GCC_DESTRUCTOR
- #endif
- #ifndef PA_GCC_PURE
- #ifdef __GNUC__
- #define PA_GCC_PURE __attribute__ ((pure))
- #else
- #define PA_GCC_PURE
- #endif
- #endif
- #ifndef PA_GCC_CONST
- #ifdef __GNUC__
- #define PA_GCC_CONST __attribute__ ((const))
- #else
- #define PA_GCC_CONST
- #endif
- #endif
- #ifndef PA_GCC_DEPRECATED
- #ifdef __GNUC__
- #define PA_GCC_DEPRECATED __attribute__ ((deprecated))
- #else
- #define PA_GCC_DEPRECATED
- #endif
- #endif
- #ifndef PA_GCC_PACKED
- #ifdef __GNUC__
- #define PA_GCC_PACKED __attribute__ ((packed))
- #else
- #define PA_GCC_PACKED
- #endif
- #endif
- #ifndef PA_GCC_ALLOC_SIZE
- #if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 3)
- #define PA_GCC_ALLOC_SIZE(x) __attribute__ ((__alloc_size__(x)))
- #define PA_GCC_ALLOC_SIZE2(x,y) __attribute__ ((__alloc_size__(x,y)))
- #else
- #define PA_GCC_ALLOC_SIZE(x)
- #define PA_GCC_ALLOC_SIZE2(x,y)
- #endif
- #endif
- #ifndef PA_GCC_MALLOC
- #ifdef __GNUC__
- #define PA_GCC_MALLOC __attribute__ ((malloc))
- #else
- #define PA_GCC_MALLOC
- #endif
- #endif
- #ifndef PA_GCC_WEAKREF
- #if defined(__GNUC__) && defined(__ELF__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ > 1)) || (__GNUC__ > 4))
- #define PA_GCC_WEAKREF(x) __attribute__((weakref(#x)))
- #endif
- #endif
- #endif
|