version 1.7.3.0
[socat.git] / mytypes.h
blob23193d58234e6a87d65dcb80d6e81fdafbef4d33
1 /* source: mytypes.h */
2 /* Copyright Gerhard Rieger */
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 */