mirror of https://github.com/Cisco-Talos/clamav
parent
5fde1c1f33
commit
98550a1210
@ -1,35 +1,35 @@ |
||||
#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 |
||||
#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 |
||||
|
Loading…
Reference in new issue