platform.h.in
98550a12
 #ifndef _WIN32
 #define closesocket(s) close(s)
 #endif
 
 #ifndef O_BINARY
 #define O_BINARY 0
 #endif
 
 #ifndef	FALSE
 #define FALSE (0)
 #endif
 #ifndef	TRUE
 #define TRUE (1)
 #endif
 
 #ifndef MIN
 #define MIN(a, b)	(((a) < (b)) ? (a) : (b))
 #endif
 #ifndef MAX
 #define MAX(a,b)	(((a) > (b)) ? (a) : (b))
 #endif
 
 #ifndef HAVE_IN_PORT_T
 typedef	unsigned	short	in_port_t;
 #endif
 
 #ifndef HAVE_IN_ADDR_T
 typedef	unsigned	int	in_addr_t;
 #endif
 
 #ifdef _WIN32
 #define PATHSEP "\\"
 #else
 #define PATHSEP "/"
 #endif
e46b546c
 
f88544c0
 #define CONFDIR_CLAMD CONFDIR PATHSEP "clamd.conf"
 #define CONFDIR_FRESHCLAM CONFDIR PATHSEP "freshclam.conf"
 #define CONFDIR_MILTER CONFDIR PATHSEP "clamav-milter.conf"
e46b546c
 
6e246c11
 /* Nothing is safe in windows, not even open */
 #define safe_open open
6f994cac
 #ifndef WORDS_BIGENDIAN
 #define WORDS_BIGENDIAN 0
 #endif