- Remove the parenthesis in the ASSERT macro definition.
[catagits/fcgi2.git] / include / fcgimisc.h
1 /* 
2  * fcgimisc.h --
3  *
4  *      Miscellaneous definitions
5  *
6  *
7  * Copyright (c) 1996 Open Market, Inc.
8  *
9  * See the file "LICENSE.TERMS" for information on usage and redistribution
10  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11  *
12  * $Id: fcgimisc.h,v 1.2 1999/05/28 02:19:58 roberts Exp $
13  */
14
15 #ifndef _FCGIMISC_H
16 #define _FCGIMISC_H
17
18 #include <stdio.h>
19 #include <limits.h>
20
21 #include <fcgi_config.h>
22
23 #ifdef HAVE_SYS_SELECT_H
24 #include <sys/select.h>
25 #endif
26 #include <sys/types.h>
27 #ifdef HAVE_SYS_SOCKET_H
28 #include <sys/socket.h>
29 #endif
30 #ifdef HAVE_WINSOCK_H
31 #include <winsock.h>
32 #endif
33 #ifdef HAVE_NETINET_IN_H
34 #include <netinet/in.h>
35 #endif
36 #ifdef HAVE_ARPA_INET_H
37 #include <arpa/inet.h>
38 #endif
39 #ifdef HAVE_SYS_UN_H
40 #include <sys/un.h>
41 #endif
42
43 /*
44  * Where does this junk normally come from?
45  */
46 #ifndef FALSE
47 #define FALSE (0)
48 #endif
49
50 #ifndef TRUE
51 #define TRUE  (1)
52 #endif
53
54 #ifndef min
55 #define min(a,b) ((a) < (b) ? (a) : (b))
56 #endif
57
58 #ifndef max
59 #define max(a,b) ((a) > (b) ? (a) : (b))
60 #endif
61
62 #ifndef ASSERT
63 #define ASSERT(assertion) assert(assertion)
64 #endif
65
66 #endif  /* _FCGIMISC_H */