#ifndef __STD_AFX_INCLUDE_H__ #define __STD_AFX_INCLUDE_H__ #ifdef ACL_PREPARE_COMPILE # include "stdlib/acl_define.h" # include # include # include /* DBL_MAX_10_EXP */ # include # include /* CHAR_BIT */ # include # if defined(_WIN32) || defined(_WIN64) # include # include # include # if(_MSC_VER >= 1300) # include # include # else # include # endif # include /* for getaddrinfo */ # if _MSC_VER >= 1500 # include # endif # ifdef __STDC_WANT_SECURE_LIB__ int acl_secure_snprintf(char *buf, size_t size, const char *fmt, ...); int acl_secure_vsnprintf(char *buf, size_t size, const char *fmt, va_list ap); # define snprintf acl_secure_snprintf # define vsnprintf acl_secure_vsnprintf # else # define snprintf _snprintf # define vsnprintf _vsnprintf # endif /* __STDC_WANT_SECURE_LIB__ */ # endif /* _WIN32 */ # ifdef ACL_UNIX # ifndef _GNU_SOURCE # define _GNU_SOURCE # endif # ifndef __USE_UNIX98 # define __USE_UNIX98 # endif # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # include # ifdef ACL_FREEBSD # include # include # endif # endif /* ACL_UNIX */ # include "lib_acl.h" #if defined (_WIN32) || defined(_WIN64) /* for vc2003 */ # if _MSC_VER <= 1310 int inet_pton(int af, const char *src, void *dst); const char *inet_ntop(int af, const void *src, char *dst, socklen_t size); #define POLLRDNORM 0x0100 #define POLLRDBAND 0x0200 #define POLLIN (POLLRDNORM | POLLRDBAND) #define POLLPRI 0x0400 #define POLLWRNORM 0x0010 #define POLLOUT (POLLWRNORM) #define POLLWRBAND 0x0020 #define POLLERR 0x0001 #define POLLHUP 0x0002 #define POLLNVAL 0x0004 typedef struct pollfd { SOCKET fd; short events; short revents; } WSAPOLLFD, *PWSAPOLLFD, *LPWSAPOLLFD; int WSAAPI WSAPoll(LPWSAPOLLFD fdArray, ULONG fds, INT timeout); # endif #endif #endif /* ACL_PREPARE_COMPILE */ //#define ACL_DEBUG_MIN 0 //#define ACL_DEBUG_MAX 30 #endif