ucommon
config.h
1 #ifndef COMMONCPP_CONFIG_H_
2 #define COMMONCPP_CONFIG_H_
3 
4 #ifndef _UCOMMON_UCOMMON_H_
5 #include <ucommon/ucommon.h>
6 #endif
7 
8 #ifdef __EXPORT
9 #undef __EXPORT
10 #endif
11 
12 #define __EXPORT __SHARED
13 
14 #include <streambuf>
15 #include <iostream>
16 
17 #define CCXX_NAMESPACES
18 #define COMMONCPP_NAMESPACE ost
19 #define NAMESPACE_COMMONCPP namespace ost {
20 #define TIMEOUT_INF ucommon::Timer::inf
21 
22 #ifdef _UCOMMON_EXTENDED_
23 #define CCXX_EXCEPTIONS
24 #endif
25 
26 #ifdef AF_INET6
27 #define CCXX_IPV6
28 #endif
29 
30 #ifdef AF_INET
31 #define CCXX_IPV4
32 #endif
33 
34 typedef pthread_t cctid_t;
35 typedef int8_t int8;
36 typedef uint8_t uint8;
37 typedef int16_t int16;
38 typedef uint16_t uint16;
39 typedef int32_t int32;
40 typedef uint32_t uint32;
41 typedef int64_t int64;
42 typedef uint64_t uint64;
43 
44 #if !defined(_MSWINDOWS_) && !defined(__QNX__)
45 
52 extern "C" inline int stricmp(const char *string1, const char *string2)
53  {return ucommon::string::case_compare(string1, string2);}
54 
62 extern "C" inline int strnicmp(const char *string1, const char *string2, size_t max)
63  {return ucommon::string::case_compare(string1, string2, max);}
64 
65 #endif
66 
67 
68 
69 #endif