2 * copyright (c) 2001-2008 Emil Mikulic.
4 * darkstat.h: general macros
8 * We only care about the following from config.h:
16 # define _unused_ __attribute__((__unused__))
17 # define _noreturn_ __attribute__((__noreturn__))
18 # define _printflike_(fmtarg, firstvararg) \
19 __attribute__((__format__ (__printf__, fmtarg, firstvararg) ))
23 # define _printflike_(fmtarg, firstvararg)
27 # define inline __inline__
30 # define inline __inline
34 #if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901
35 #define restrict __restrict
39 # define max(a,b) ((a) > (b) ? (a) : (b))
43 # define min(a,b) ((a) < (b) ? (a) : (b))
46 /* vim:set ts=3 sw=3 tw=78 expandtab: */