Move functions only needed by audiod from stat.c to audiod_command.c.
[paraslash.git] / gcc-compat.h
1 # define inline inline __attribute__ ((always_inline))
2 # define __noreturn __attribute__ ((noreturn))
3 # define __malloc __attribute__ ((malloc))
4 # define __a_unused __attribute__ ((unused))
5 # define likely(x) __builtin_expect (!!(x), 1)
6 # define unlikely(x) __builtin_expect (!!(x), 0)
7 /*
8 * p is the number of the "format string" parameter, and q is
9 * the number of the first variadic parameter
10 */
11 # define __printf(p,q) __attribute__ ((format (printf, p, q)))
12 /*
13 * as direct use of __printf(p,q) confuses doxygen, here are two extra macros
14 * for those values p,q that are actually used by paraslash.
15 */
16 #define __printf_1_2 __printf(1,2)
17 #define __printf_2_3 __printf(2,3)
18
19 # if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ > 3)
20 # define __must_check __attribute__ ((warn_unused_result))
21 # else
22 # define __must_check /* no warn_unused_result */
23 # endif
24
25 #define _static_inline_ static inline