config-win32.h
Go to the documentation of this file.
1 /*
2  * Copyright 2002, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
3  * Copyright 2002, Bastiaan Bakker. All rights reserved.
4  *
5  * See the COPYING file for the terms of usage and distribution.
6  */
7 
8 #ifndef _INCLUDE_LOG4CPP_CONFIG_WIN32_H
9 #define _INCLUDE_LOG4CPP_CONFIG_WIN32_H 1
10 
11 /* manually edited from include/log4cpp/config.h */
12 
13 /* Define if you have the syslog function. */
14 /* #undef LOG4CPP_HAVE_SYSLOG */
15 
16 /* Define if you have the `ftime' function. */
17 #ifndef LOG4CPP_HAVE_FTIME
18 #define LOG4CPP_HAVE_FTIME 1
19 #endif
20 
21 /* Define if you have the `gettimeofday' function. */
22 /* #undef LOG4CPP_HAVE_GETTIMEOFDAY */
23 
24 /* define if the compiler has int64_t */
25 #ifndef LOG4CPP_HAVE_INT64_T
26 #define LOG4CPP_HAVE_INT64_T
27 typedef __int64 int64_t;
28 
29 /* define if the compiler has in_addr_t */
30 #ifndef LOG4CPP_HAVE_IN_ADDR_T
31 #define LOG4CPP_HAVE_IN_ADDR_T
32 
33 #ifndef u_long
34 typedef unsigned long u_long;
35 #endif
36 
37 /* u_long is the type of in_addr.s_addr */
38 typedef u_long in_addr_t;
39 
40 /* u_short is the type of sockaddr_in.sin_port */
41 // typedef u_short in_port_t;
42 
43 #endif
44 
45 #if defined(_MSC_VER) && _MSC_VER < 1300
46 #define LOG4CPP_MISSING_INT64_OSTREAM_OP
47 #endif
48 
49 #endif
50 
51 /* Define if you have the <io.h> header file. */
52 #ifndef LOG4CPP_HAVE_IO_H
53 #define LOG4CPP_HAVE_IO_H 1
54 #endif
55 
56 /* Define if you have the <unistd.h> header file. */
57 /* #undef LOG4CPP_HAVE_UNISTD_H */
58 
59 /* Define if you have the idsa library (-lidsa). */
60 /* #undef LOG4CPP_HAVE_LIBIDSA */
61 
62 /* Define if you have the `strcasecmp' function. */
63 /* #undef LOG4CPP_HAVE_STRCASECMP */
64 
65 /* Name of package */
66 #ifndef LOG4CPP_PACKAGE
67 #define LOG4CPP_PACKAGE "log4cpp"
68 #endif
69 
70 /* Version number of package */
71 #ifndef LOG4CPP_VERSION
72 #define LOG4CPP_VERSION "1.0"
73 #endif
74 
75 /* define if the compiler implements namespaces */
76 #ifndef LOG4CPP_HAVE_NAMESPACES
77 #define LOG4CPP_HAVE_NAMESPACES 1
78 #endif
79 
80 /* define if the compiler has stringstream */
81 #ifndef LOG4CPP_HAVE_SSTREAM
82 #define LOG4CPP_HAVE_SSTREAM 1
83 #endif
84 
85 #if defined(_MSC_VER)
86 # if _MSC_VER < 1300
87 # define LOG4CPP_HAS_WCHAR_T 0
88 # else
89 # define LOG4CPP_HAS_WCHAR_T 1
90 # endif
91 #else
92 # define LOG4CPP_HAS_WCHAR_T 1
93 #endif
94 
95 /* define if the C library has snprintf */
96 #ifndef LOG4CPP_HAVE_SNPRINTF
97 #define LOG4CPP_HAVE_SNPRINTF 1
98 #endif
99 
100 #if defined(_MSC_VER) && _MSC_VER >= 1300
101 #define LOG4CPP_HAVE_LOCALTIME_R 1
102 #endif
103 
104 /* define to get around problems with ERROR in windows.h */
105 #ifndef LOG4CPP_FIX_ERROR_COLLISION
106 #define LOG4CPP_FIX_ERROR_COLLISION 1
107 #endif
108 
109 /* define WIN32 for Borland */
110 #ifndef WIN32
111 #define WIN32
112 #endif
113 
114 /* use threads */
115 #ifndef LOG4CPP_HAVE_THREADING
116 #define LOG4CPP_HAVE_THREADING
117 #endif
118 
119 /* use ms threads */
120 #ifndef LOG4CPP_USE_MSTHREADS
121 #define LOG4CPP_USE_MSTHREADS
122 #endif
123 
124 /* supply DLL main */
125 #ifndef LOG4CPP_SUPPLY_DLLMAIN
126 #define LOG4CPP_SUPPLY_DLLMAIN
127 #endif
128 
129 /* MSVCs <cstdlib> and <cstring> headers are broken in the sense that they
130  put functions in the global namespace instead of std::
131  The #defines below enable a workaround for MSVC 6 and lower. If MSVC 7
132  is still broken please adjust the _MSC_VER version check and report it.
133  See also bug report #628211.
134 */
135 #if defined(_MSC_VER) && _MSC_VER < 1300
136 
137 #ifndef LOG4CPP_CSTDLIB_NOT_IN_STD
138 #define LOG4CPP_CSTDLIB_NOT_IN_STD
139 #endif
140 
141 #ifndef LOG4CPP_CSTRING_NOT_IN_STD
142 #define LOG4CPP_CSTRING_NOT_IN_STD
143 #endif
144 
145 #ifndef LOG4CPP_CTIME_NOT_IN_STD
146 #define LOG4CPP_CTIME_NOT_IN_STD
147 #endif
148 
149 #ifndef LOG4CPP_CMATH_NOT_IN_STD
150 #define LOG4CPP_CMATH_NOT_IN_STD
151 #endif
152 
153 #endif
154 
155 /* define mode_t. Move to Portability.hh if more platforms need it */
156 #if !defined(__BORLANDC__)
157 namespace log4cpp
158 {
159  typedef int mode_t;
160 }
161 #endif
162 
163 #if defined(_MSC_VER) && _MSC_VER == 1310
164 // warning C4275: interface non dll class 'std::runtime_error' utilisée comme base
165 // d'une interface dll class 'log4cpp::ConfigureFailure'
166 #pragma warning(disable: 4275)
167 #endif
168 
169 /* _INCLUDE_LOG4CPP_CONFIG_WIN32_H */
170 #endif
unsigned long u_long
Definition: config-win32.h:34
__int64 int64_t
Definition: config-win32.h:27
unsigned long u_long
u_long in_addr_t
Definition: config-win32.h:38
int mode_t
Definition: config-win32.h:159


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sun Jun 23 2019 19:14:17