Showing the changes to src/sox.h (1 of 1 file). Show all
Unified · Split
| @@ -32,6 +32,19 @@ extern "C" { · 31 unmodified lines | |||
| 32 | #pragma GCC system_header | 32 | #pragma GCC system_header |
| 33 | #endif | 33 | #endif |
| 34 | 34 | ||
| 35 | #if defined __GNUC__ | ||
| 36 | #define LSX_GCC(maj, min) \ | ||
| 37 | ((__GNUC__ > (maj)) || (__GNUC__ == (maj) && __GNUC_MINOR__ >= (min))) | ||
| 38 | #else | ||
| 39 | #define LSX_GCC(maj, min) 0 | ||
| 40 | #endif | ||
| 41 | |||
| 42 | #if LSX_GCC(4,9) | ||
| 43 | #define _Ret_ __attribute__ ((returns_nonnull)) | ||
| 44 | #define _Ret_valid_ _Ret_ | ||
| 45 | #define _Ret_z_ _Ret_ | ||
| 46 | #endif | ||
| 47 | |||
| 35 | /***************************************************************************** | 48 | /***************************************************************************** |
| 36 | API decoration macros: | 49 | API decoration macros: |
| 37 | Mostly for documentation purposes. For some compilers, decorations also affect | 50 | Mostly for documentation purposes. For some compilers, decorations also affect |