Version 1.8.0.0
[socat.git] / mytypes.h
blobf1b73f8377a82d658959a4ffa4491a6d0ae320bf
1 /* source: mytypes.h */
2 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
3 /* Published under the GNU General Public License V.2, see file COPYING */
5 #ifndef __mytypes_h_included
6 #define __mytypes_h_included 1
8 /* some types and macros I miss in C89 */
10 #ifndef HAVE_TYPE_BOOL
11 # undef bool
12 typedef enum { false, true } bool;
13 #endif
15 #ifndef Min
16 #define Min(x,y) ((x)<=(y)?(x):(y))
17 #endif
19 #ifndef Max
20 #define Max(x,y) ((x)>=(y)?(x):(y))
21 #endif
23 #define SOCKADDR_MAX UNIX_PATH_MAX
25 #endif /* __mytypes_h_included */