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
12 typedef enum { false, true } bool;
16 #define Min(x,y) ((x)<=(y)?(x):(y))
20 #define Max(x,y) ((x)>=(y)?(x):(y))
23 #define SOCKADDR_MAX UNIX_PATH_MAX
25 #endif /* __mytypes_h_included */