ucommon
|
00001 #ifndef COMMONCPP_CONFIG_H_ 00002 #define COMMONCPP_CONFIG_H_ 00003 00004 #ifndef _UCOMMON_UCOMMON_H_ 00005 #include <ucommon/ucommon.h> 00006 #endif 00007 00008 #ifdef __EXPORT 00009 #undef __EXPORT 00010 #endif 00011 00012 #define __EXPORT __SHARED 00013 00014 #include <streambuf> 00015 #include <iostream> 00016 00017 #define CCXX_NAMESPACES 00018 #define COMMONCPP_NAMESPACE ost 00019 #define NAMESPACE_COMMONCPP namespace ost { 00020 #define TIMEOUT_INF ucommon::Timer::inf 00021 00022 #ifdef _UCOMMON_EXTENDED_ 00023 #define CCXX_EXCEPTIONS 00024 #endif 00025 00026 #ifdef AF_INET6 00027 #define CCXX_IPV6 00028 #endif 00029 00030 #ifdef AF_INET 00031 #define CCXX_IPV4 00032 #endif 00033 00034 typedef pthread_t cctid_t; 00035 typedef int8_t int8; 00036 typedef uint8_t uint8; 00037 typedef int16_t int16; 00038 typedef uint16_t uint16; 00039 typedef int32_t int32; 00040 typedef uint32_t uint32; 00041 typedef int64_t int64; 00042 typedef uint64_t uint64; 00043 00044 #if !defined(_MSWINDOWS_) && !defined(__QNX__) 00045 00052 extern "C" inline int stricmp(const char *string1, const char *string2) 00053 {return ucommon::string::case_compare(string1, string2);} 00054 00062 extern "C" inline int strnicmp(const char *string1, const char *string2, size_t max) 00063 {return ucommon::string::case_compare(string1, string2, max);} 00064 00065 #endif 00066 00067 00068 00069 #endif