allow sort on "last seen"
[darkstat] / darkstat.h
1 /* darkstat 3
2 * copyright (c) 2001-2008 Emil Mikulic.
3 *
4 * darkstat.h: general macros
5 */
6
7 /*
8 * We only care about the following from config.h:
9 * - PACKAGE_NAME
10 * - PACKAGE_VERSION
11 * - PACKAGE_STRING
12 */
13 #include "config.h"
14
15 #ifdef __GNUC__
16 # define _unused_ __attribute__((__unused__))
17 # define _noreturn_ __attribute__((__noreturn__))
18 #else
19 # define _unused_
20 # define _noreturn_
21 #endif
22
23 #if __GNUC__ == 2
24 # define inline __inline__
25 #else
26 # ifdef __TenDRA__
27 # define inline __inline
28 # endif
29 #endif
30
31 #ifndef max
32 # define max(a,b) ((a) > (b) ? (a) : (b))
33 #endif
34
35 #ifndef min
36 # define min(a,b) ((a) < (b) ? (a) : (b))
37 #endif
38
39 /* vim:set ts=3 sw=3 tw=78 expandtab: */