File: darkstat.h

package info (click to toggle)
darkstat 3.0.708-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 708 kB
  • ctags: 592
  • sloc: ansic: 5,326; sh: 322; makefile: 131
file content (37 lines) | stat: -rw-r--r-- 602 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* darkstat 3
 * copyright (c) 2001-2007 Emil Mikulic.
 *
 * darkstat.h: general macros
 */

/*
 * We only care about the following from config.h:
 * - PACKAGE_NAME
 * - PACKAGE_VERSION
 * - PACKAGE_STRING
 */
#include "config.h"

#ifdef __GNUC__
# define _unused_ __attribute__((__unused__))
#else
# define _unused_
#endif

#if __GNUC__ == 2
# define inline __inline__
#else
# ifdef __TenDRA__
#  define inline __inline
# endif
#endif

#ifndef max
# define max(a,b) ((a) > (b) ? (a) : (b))
#endif

#ifndef min
# define min(a,b) ((a) < (b) ? (a) : (b))
#endif

/* vim:set ts=3 sw=3 tw=78 expandtab: */