⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.h.in

📁 贡献一份commoncpp2,有兴趣的可以研究一下
💻 IN
📖 第 1 页 / 共 2 页
字号:
/* Define to 1 if you have the <sys/socket.h> header file. */#undef HAVE_SYS_SOCKET_H/* Define to 1 if you have the <sys/sockio.h> header file. */#undef HAVE_SYS_SOCKIO_H/* Define to 1 if you have the <sys/stat.h> header file. */#undef HAVE_SYS_STAT_H/* Define to 1 if you have the <sys/stream.h> header file. */#undef HAVE_SYS_STREAM_H/* Define to 1 if you have the <sys/time.h> header file. */#undef HAVE_SYS_TIME_H/* have 64 bit longs */#undef HAVE_SYS_TYPES_64/* Define to 1 if you have the <sys/types.h> header file. */#undef HAVE_SYS_TYPES_H/* have systypes */#undef HAVE_SYS_TYPES_STD/* Define to 1 if you have the <sys/un.h> header file. */#undef HAVE_SYS_UN_H/* Define to 1 if you have the <sys/wait.h> header file. */#undef HAVE_SYS_WAIT_H/* Define to 1 if you have the <thread.h> header file. */#undef HAVE_THREAD_H/* Define to 1 if you have the <unistd.h> header file. */#undef HAVE_UNISTD_H/* has unix domain sockets */#undef HAVE_UNIX_SOCKETS/* Define to 1 if you have the `wait4' function. */#undef HAVE_WAIT4/* Define to 1 if you have the `waitpid' function. */#undef HAVE_WAITPID/* Define to 1 if you have the <winsock2.h> header file. */#undef HAVE_WINSOCK2_H/* Define to 1 if you have the <winsock.h> header file. */#undef HAVE_WINSOCK_H/* has usable atomic functions */#undef HAVE_WORKING_SYS_ATOMIC_H/* have zlib header */#undef HAVE_ZLIB_H/* Name of package */#undef PACKAGE/* Define to the address where bug reports for this package should be sent. */#undef PACKAGE_BUGREPORT/* Define to the full name of this package. */#undef PACKAGE_NAME/* Define to the full name and version of this package. */#undef PACKAGE_STRING/* Define to the one symbol short name of this package. */#undef PACKAGE_TARNAME/* Define to the version of this package. */#undef PACKAGE_VERSION/* mutex type */#undef PTHREAD_MUTEXTYPE_RECURSIVE/* Define as the return type of signal handlers (`int' or `void'). */#undef RETSIGTYPE/* Define to 1 if you have the ANSI C header files. */#undef STDC_HEADERS/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */#undef TIME_WITH_SYS_TIME/* Version number of package */#undef VERSION/* bsd system using linuxthreads */#undef WITH_LINUXTHREADS/* darwin6 environment */#undef _DARWIN6_/* Define to 1 if on MINIX. */#undef _MINIX/* Define to 2 if the system does not provide POSIX.1 features except with   this defined. */#undef _POSIX_1_SOURCE/* Define to 1 if you need to in order for `stat' and other things to work. */#undef _POSIX_SOURCE/* endian byte order */#undef __BYTE_ORDER#ifndef HAVE_STRERROR_R#define strerror_r(e, b, l) b = ::strerror(e)#endif#ifndef	HAVE_GETPWUID_R#define	getpwuid_r(uid, rec, buf, size, ptr) ptr = ::getpwuid(uid)#define	getpwnam_r(name, rec, buf, size, ptr) ptr = ::getpwnam(name)#endif	#ifdef HAVE_POLL_H#include <poll.h>#else#ifdef HAVE_SYS_POLL_H#include <sys/poll.h>#endif#endif#if defined(HAVE_POLL) && defined(POLLRDNORM)#define	USE_POLL#endif	#ifdef HAVE_SYS_LIBCSYS_H#include <sys/libcsys.h>#endif#ifdef HAVE_WINSOCK2_H#include <winsock2.h>#else#ifdef HAVE_WINSOCK_H#include <winsock.h>#else#ifdef HAVE_SYS_SOCKET_H#include <sys/socket.h>#ifdef HAVE_SELECT_H#include <select.h>#else#ifdef HAVE_SYS_SELECT_H#include <sys/select.h>#endif#endif#ifdef HAVE_NETINET_IN_H#if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)#undef _XOPEN_SOURCE_EXTENDED#endif#include <netinet/in.h>#ifdef	__hpux#define	_XOPEN_SOURCE_EXTENDED#endif#endif#ifdef HAVE_ARPA_INET_H#include <arpa/inet.h>#include <netdb.h>#endif#ifdef	HAVE_NETINET6_IN6_H#include <netinet6/in6.h>#endif#ifdef	HAVE_LINIX_IN6_H#include <linux/in6.h>#endif#ifdef HAVE_NETINET_IN_SYSTM_H#include <netinet/in_systm.h>#endif#ifdef HAVE_NETINET_IP_H#include <netinet/ip.h>#endif#ifdef HAVE_SYS_UN_H#include <sys/un.h>#endif#endif#endif#endif#ifndef HAVE_INET_ATON#define inet_aton(cp, addr) (((*(unsigned long int *)(addr)) = inet_addr(cp)) != -1)#endif#ifndef SUN_LEN#ifdef SCM_RIGHTS#define HAVE_UN_LEN#endif#ifdef __linux__#define HAVE_UN_LEN#endif#ifdef HAVE_UN_LEN#define SUN_LEN(ptr) sizeof(sockaddr_un.sun_len) + sizeof(sockaddr_un.sun_family) + sizeof(sockaddr_un.sun_path) + 1#else#define SUN_LEN(ptr) ((size_t)((struct sockaddr_un *)0)->sun_path) + strlen((ptr)->sun_path))#endif#endif#ifndef	_OSF_SOURCE#ifndef HAVE_SOCKLEN_T#if defined(i386) && defined(__svr4__)#define HAVE_SOCKLEN_U#else#if defined(__CYGWIN32__)#define socklen_t int#elsetypedef int socklen_t;#endif#endif#ifdef HAVE_SOCKLEN_U#if !defined(__CYGWIN32__) && !defined(__MINGW32__)typedef unsigned socklen_t;#elsetypedef int socklen_t;#endif#endif#endif#endif#ifdef  __hpux#ifdef  mutable#undef  mutable#endif#endif#if defined(AF_INET6) && defined(HAVE_INET_PTON)#define	CCXX_IPV6#endif#define	CCXX_MULTIFAMILY_IP	#ifndef HAVE_BOOL_TYPEtypedef enum { true=1, false=0 } bool;#endif	#ifndef CCXX_EXCEPTIONS/* disable HAVE_EXCEPTION */#ifdef  HAVE_EXCEPTION#undef  HAVE_EXCEPTION#endif/* throw - replacement to throw an exception */#define THROW(x) abort()/* throw - replacement to declare an exception */#define THROWS(x)/* throw - for empty list */#define	NEW_THROWS#define	THROWS_EMPTY/* * work around dangeling if/else combinations: */#else#define THROW(x) throw x#define THROWS(x) throw(x)#define	NEW_THROWS throw()#define	THROWS_EMPTY throw()#endif	#ifdef CCXX_NAMESPACES#define USING(x) using namespace x;#else#define USING(x)#endif#ifdef  __KCC#define KAI_NONSTD_IOSTREAM 1#endif	#ifdef	HAVE_SS_H#include <ss.h>#define	COMMON_SECURE#endif#ifndef	ETC_PREFIX#ifdef	WIN32#define	ETC_PREFIX "C:\\WINDOWS\\"#endif#ifndef	ETC_PREFIX#define	ETC_PREFIX "/etc/"#endif#endif#endif#ifndef HAVE_FCNTL_H#ifdef HAVE_SYS_FCNTL_H#include <sys/fcntl.h>#endif#else#include <fcntl.h>#ifndef O_NDELAY#ifdef HAVE_SYS_FCNTL_H#include <sys/fcntl.h>#endif#endif#endif	#if defined(HAVE_ENDIAN_H) #include <endian.h>#elif defined(HAVE_SYS_ISA_DEFS_H) #include <sys/isa_defs.h> #ifdef	_LITTLE_ENDIAN  #define	__BYTE_ORDER 1234 #else  #define	__BYTE_ORDER 4321 #endif #if _ALIGNMENT_REQUIRED > 0  #define	__BYTE_ALIGNMENT _MAX_ALIGNMENT #else  #define	__BYTE_ALIGNMENT 1 #endif#endif#ifndef	__LITTLE_ENDIAN#define __LITTLE_ENDIAN 1234#define __BIG_ENDIAN 4321#endif#ifndef	__BYTE_ORDER#define	__BYTE_ORDER 1234#endif#ifndef	__BYTE_ALIGNMENT#if defined(SPARC) || defined(sparc)#if defined(__arch64__) || defined(__sparcv9)#define	__BYTE_ALIGNMENT 8#else#define	__BYTE_ALIGNMENT 4#endif#endif#endif#ifndef	__BYTE_ALIGNMENT#define	__BYTE_ALIGNMENT 1#endif	#ifdef HAVE_SIGACTION#ifdef HAVE_BSD_SIGNAL_H#undef HAVE_BSD_SIGNAL_H#endif#endif#ifdef HAVE_BSD_SIGNAL_H#include <bsd/signal.h>#else#include <signal.h>#endif#ifndef SA_ONESHOT#define SA_ONESHOT SA_RESETHAND#endif/* Cause problem with Solaris... and perhaps Digital Unix?  However, the autoconf test in ost_signal defines_POSIX_PTHREAD_SEMANTICS  when trying to compile sigwait2. */#ifdef  HAVE_SIGWAIT2#ifndef	_POSIX_PTHREAD_SEMANTICS#define _POSIX_PTHREAD_SEMANTICS#endif#endif	#include <string.h>#ifdef HAVE_STRINGS_H#ifndef	_AIX#include <strings.h>#endif#endif#ifdef HAVE_ALLOCA_H#include <alloca.h>#endif#ifndef HAVE_SNPRINTF#ifdef  WIN32#define snprintf        _snprintf#define vsnprintf       _vsnprintf#endif#endif#ifdef HAVE_STRCASECMP#ifndef stricmp#define stricmp(x,y) strcasecmp(x,y)#endif#ifndef strnicmp#define strnicmp(x,y,n) strncasecmp(x,y,n)#endif#ifndef	stristr#define	stristr(x, y) strcasestr(x,y)#endif#endif	#ifdef HAVE_THREAD_H#include "@thrprefix@/thread.h"#if defined(i386) && defined(__svr4__) && !defined(__sun)#define _THR_UNIXWARE#endif#if defined(__SVR4) && defined(__sun)#define _THR_SUNOS5#else#if defined(__SVR4__) && defined(__SUN__)#define _THR_SUNOS5#endif#endif#endif#ifdef HAVE_WORKING_SYS_ATOMIC_H#include <sys/atomic.h>#define HAVE_ATOMIC#elif defined(HAVE_ATOMIC_AIX)#include <sys/atomic_op.h>#ifndef	HAVE_ATOMIC#define	HAVE_ATOMIC#endif#endif#if defined(__cplusplus)#if defined(HAVE_GCC_BITS_ATOMIC) || defined(HAVE_GCC_CXX_BITS_ATOMIC)#include <bits/atomicity.h>#define HAVE_ATOMIC#endif#endif#if defined(HAVE_PTHREAD_H) && ( defined(_THREAD_SAFE) || defined(_REENTRANT) )#ifdef	__QNX__#define	__EXT_QNX#endif#include <pthread.h>#ifdef HAVE_PTHREAD_NP_H#include <pthread_np.h>#endif#ifdef HAVE_SEMAPHORE_H#include <semaphore.h>#endif#ifdef _POSIX_PRIORITY_SCHEDULING#ifdef HAVE_SCHED_H#include <sched.h>#else#ifdef HAVE_SYS_SCHED_H#include <sys/sched.h>#endif#endif#endif#define __PTHREAD_H__#ifndef PTHREAD_MUTEXTYPE_RECURSIVE#ifdef  MUTEX_TYPE_COUNTING_FAST#define PTHREAD_MUTEXTYPE_RECURSIVE MUTEX_TYPE_COUNTING_FAST#endif#endif#ifndef PTHREAD_MUTEXTYPE_RECURSIVE#ifdef  PTHREAD_MUTEX_RECURSIVE#define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE#endif#endif#ifndef HAVE_PTHREAD_MUTEXATTR_SETTYPE#if     HAVE_PTHREAD_MUTEXATTR_SETKIND_NP#ifndef PTHREAD_MUTEXTYPE_RECURSIVE#define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP#endif#define pthread_mutexattr_gettype(x, y) pthread_mutexattr_getkind_np(x, y)#define pthread_mutexattr_settype(x, y) pthread_mutexattr_setkind_np(x, y)#endif#if     HAVE_PTHREAD_MUTEXATTR_SETTYPE_NP#ifndef PTHREAD_MUTEXTYPE_RECURSIVE#define PTHREAD_MUTEXTYPE_RECURSIVE PTHREAD_MUTEXTYPE_RECURSIVE_NP#endif#define pthread_mutexattr_settype(x, y) pthread_mutexattr_settype_np(x, y)#define pthread_mutexattr_gettype(x, y) pthread_mutexattr_gettype_np(x, y)#endif#endif#ifdef	HAVE_PTHREAD_MACH_THREAD_NP#define	_THR_MACH#endif#ifndef HAVE_PTHREAD_YIELD#ifdef	HAVE_PTHREAD_YIELD_NP#define	pthread_yield() pthread_yield_np()#define	HAVE_PTHREAD_YIELD#endif#endif#ifndef HAVE_PTHREAD_YIELD#ifdef HAVE_PTHREAD_SCHED_YIELD#define pthread_yield() sched_yield()#define HAVE_PTHREAD_YIELD#endif#endif#ifndef HAVE_PTHREAD_DELAY#ifdef HAVE_PTHREAD_DELAY_NP#define HAVE_PTHREAD_DELAY#define pthread_delay(x) pthread_delay_np(x)#endif#if defined(HAVE_PTHREAD_NANOSLEEP)#ifndef HAVE_PTHREAD_DELAY#define HAVE_PTHREAD_DELAY#ifdef __FreeBSD__#ifdef __cplusplusextern "C" int nanosleep(const struct timespec *rqtp, struct timespec *rmtp);#endif#endif#define pthread_delay(x) nanosleep(x, NULL)#endif#endif#endif#ifdef HAVE_PTHREAD_ATTR_SETSTACK#ifndef PTHREAD_STACK_MIN#define PTHREAD_STACK_MIN 32768#endif#endif#ifndef HAVE_PTHREAD_CANCEL#ifdef SIGCANCEL#define CCXX_SIG_THREAD_CANCEL SIGCANCEL#else#define CCXX_SIG_THREAD_CANCEL SIGQUIT#endif#define pthread_cancel(x) pthread_kill(x, CCXX_SIG_THREAD_CANCEL)#define	pthread_setcanceltype(x, y)#define	pthread_setcancelstate(x, y)#endif#ifndef HAVE_PTHREAD_SETCANCELTYPE#ifdef HAVE_PTHREAD_SETCANCELenum{ PTHREAD_CANCEL_ASYNCHRONOUS = CANCEL_ON,  PTHREAD_CANCEL_DEFERRED = CANCEL_OFF};enum{ PTHREAD_CANCEL_ENABLE = CANCEL_ON,  PTHREAD_CANCEL_DISABLE = CANCEL_OFF};#define pthread_setcancelstate(x, y) \        (y == NULL) ? pthread_setcancel(x) : *y = pthread_setcancel#define pthread_setcanceltype(x, y) \        (y == NULL) ? pthread_setasynccancel(x) | *y = pthread_setasynccancel(x)#else#define pthread_setcanceltype(x, y)#define pthread_setcancelstate(x, y)#endif#endif#ifdef  _AIX#ifdef  HAVE_PTHREAD_SUSPEND#undef  HAVE_PTHREAD_SUSPEND#endif#endif#endif	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -