summaryrefslogtreecommitdiff
path: root/defs.h
blob: bf7d2407d4f728aef0fdd47fd70069929542158a (plain)
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
38
39
40
#ifndef    __DEFS_H
#define    __DEFS_H


#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif

#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#ifndef PATH_SEP
#define PATH_SEP ':'
#endif


#if !defined( min )
#define min(a,b)  ({ typeof (a) _a = (a); typeof (b) _b = (b); _a < _b ? _a : _b; })
#endif
#if !defined( max )
#define max(a,b)  ({ typeof (a) _a = (a); typeof (b) _b = (b); _a > _b ? _a : _b; })
#endif


#ifdef __cplusplus
extern "C" {
#endif



#ifdef __cplusplus
}
#endif

#endif  /* __DEFS_H */