| 1 |
#ifndef foopulsegccmacrohfoo |
| 2 |
#define foopulsegccmacrohfoo |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
#if defined(__GNUC__) |
| 27 |
#ifdef __MINGW32__ |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
#define PA_GCC_PRINTF_ATTR(a,b) __attribute__ ((format (__printf__, a, b))) |
| 32 |
#else |
| 33 |
#define PA_GCC_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b))) |
| 34 |
#endif |
| 35 |
#else |
| 36 |
|
| 37 |
#define PA_GCC_PRINTF_ATTR(a,b) |
| 38 |
#endif |
| 39 |
|
| 40 |
#if defined(__GNUC__) && (__GNUC__ >= 4) |
| 41 |
#define PA_GCC_SENTINEL __attribute__ ((sentinel)) |
| 42 |
#else |
| 43 |
|
| 44 |
#define PA_GCC_SENTINEL |
| 45 |
#endif |
| 46 |
|
| 47 |
#ifdef __GNUC__ |
| 48 |
#define PA_GCC_NORETURN __attribute__((noreturn)) |
| 49 |
#else |
| 50 |
|
| 51 |
#define PA_GCC_NORETURN |
| 52 |
#endif |
| 53 |
|
| 54 |
#ifdef __GNUC__ |
| 55 |
#define PA_GCC_UNUSED __attribute__ ((unused)) |
| 56 |
#else |
| 57 |
|
| 58 |
#define PA_GCC_UNUSED |
| 59 |
#endif |
| 60 |
|
| 61 |
#ifdef __GNUC__ |
| 62 |
#define PA_GCC_DESTRUCTOR __attribute__ ((destructor)) |
| 63 |
#else |
| 64 |
|
| 65 |
#define PA_GCC_DESTRUCTOR |
| 66 |
#endif |
| 67 |
|
| 68 |
#ifndef PA_GCC_PURE |
| 69 |
#ifdef __GNUC__ |
| 70 |
#define PA_GCC_PURE __attribute__ ((pure)) |
| 71 |
#else |
| 72 |
|
| 73 |
#define PA_GCC_PURE |
| 74 |
#endif |
| 75 |
#endif |
| 76 |
|
| 77 |
#ifndef PA_GCC_CONST |
| 78 |
#ifdef __GNUC__ |
| 79 |
#define PA_GCC_CONST __attribute__ ((const)) |
| 80 |
#else |
| 81 |
|
| 82 |
#define PA_GCC_CONST |
| 83 |
#endif |
| 84 |
#endif |
| 85 |
|
| 86 |
#ifndef PA_GCC_DEPRECATED |
| 87 |
#ifdef __GNUC__ |
| 88 |
#define PA_GCC_DEPRECATED __attribute__ ((deprecated)) |
| 89 |
#else |
| 90 |
|
| 91 |
#define PA_GCC_DEPRECATED |
| 92 |
#endif |
| 93 |
#endif |
| 94 |
|
| 95 |
#ifndef PA_GCC_PACKED |
| 96 |
#ifdef __GNUC__ |
| 97 |
#define PA_GCC_PACKED __attribute__ ((packed)) |
| 98 |
#else |
| 99 |
|
| 100 |
#define PA_GCC_PACKED |
| 101 |
#endif |
| 102 |
#endif |
| 103 |
|
| 104 |
#ifndef PA_GCC_ALLOC_SIZE |
| 105 |
#if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 3) |
| 106 |
#define PA_GCC_ALLOC_SIZE(x) __attribute__ ((__alloc_size__(x))) |
| 107 |
#define PA_GCC_ALLOC_SIZE2(x,y) __attribute__ ((__alloc_size__(x,y))) |
| 108 |
#else |
| 109 |
|
| 110 |
#define PA_GCC_ALLOC_SIZE(x) |
| 111 |
|
| 112 |
#define PA_GCC_ALLOC_SIZE2(x,y) |
| 113 |
#endif |
| 114 |
#endif |
| 115 |
|
| 116 |
#ifndef PA_GCC_MALLOC |
| 117 |
#ifdef __GNUC__ |
| 118 |
#define PA_GCC_MALLOC __attribute__ ((malloc)) |
| 119 |
#else |
| 120 |
|
| 121 |
#define PA_GCC_MALLOC |
| 122 |
#endif |
| 123 |
#endif |
| 124 |
|
| 125 |
#ifndef PA_GCC_WEAKREF |
| 126 |
#if defined(__GNUC__) && defined(__ELF__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ > 1)) || (__GNUC__ > 4)) |
| 127 |
|
| 128 |
#define PA_GCC_WEAKREF(x) __attribute__((weakref(#x))) |
| 129 |
#endif |
| 130 |
#endif |
| 131 |
|
| 132 |
#endif |