config-win32.h
Go to the documentation of this file.
00001 #ifndef _INCLUDE_LOG4CPP_CONFIG_WIN32_H
00002 #define _INCLUDE_LOG4CPP_CONFIG_WIN32_H 1
00003  
00004 /* manually edited from include/log4cpp/config.h */
00005 
00006 /* Define if you have the syslog function.  */
00007 /* #undef LOG4CPP_HAVE_SYSLOG */
00008 
00009 /* Define if you have the `ftime' function. */
00010 #ifndef LOG4CPP_HAVE_FTIME 
00011 #define LOG4CPP_HAVE_FTIME  1 
00012 #endif
00013 
00014 /* Define if you have the `gettimeofday' function. */
00015 /* #undef LOG4CPP_HAVE_GETTIMEOFDAY */ 
00016 
00017 /* define if the compiler has int64_t */
00018 #ifndef LOG4CPP_HAVE_INT64_T 
00019 #define LOG4CPP_HAVE_INT64_T
00020 typedef __int64 int64_t;
00021 
00022 /* define if the compiler has in_addr_t */
00023 #ifndef LOG4CPP_HAVE_IN_ADDR_T 
00024 #define LOG4CPP_HAVE_IN_ADDR_T
00025 
00026 #ifndef u_long 
00027 typedef unsigned long u_long;
00028 #endif
00029 
00030 /* u_long is the type of in_addr.s_addr */
00031 typedef u_long in_addr_t;
00032 
00033 /* u_short is the type of sockaddr_in.sin_port */
00034 // typedef u_short              in_port_t;
00035 
00036 #endif
00037 
00038 #if defined(_MSC_VER) && _MSC_VER < 1300
00039 #define LOG4CPP_MISSING_INT64_OSTREAM_OP   
00040 #endif
00041 
00042 #endif
00043 
00044 /* Define if you have the <io.h> header file.  */
00045 #ifndef LOG4CPP_HAVE_IO_H
00046 #define LOG4CPP_HAVE_IO_H 1
00047 #endif
00048 
00049 /* Define if you have the <unistd.h> header file.  */
00050 /* #undef LOG4CPP_HAVE_UNISTD_H */
00051 
00052 /* Define if you have the idsa library (-lidsa).  */
00053 /* #undef LOG4CPP_HAVE_LIBIDSA */
00054 
00055 /* Define if you have the `strcasecmp' function. */
00056 /* #undef LOG4CPP_HAVE_STRCASECMP */
00057 
00058 /* Name of package */
00059 #ifndef LOG4CPP_PACKAGE
00060 #define LOG4CPP_PACKAGE  "log4cpp"
00061 #endif
00062 
00063 /* Version number of package */
00064 #ifndef LOG4CPP_VERSION
00065 #define LOG4CPP_VERSION  "0.3.5"
00066 #endif
00067 
00068 /* define if the compiler implements namespaces */
00069 #ifndef LOG4CPP_HAVE_NAMESPACES
00070 #define LOG4CPP_HAVE_NAMESPACES 1
00071 #endif
00072 
00073 /* define if the compiler has stringstream */
00074 #ifndef LOG4CPP_HAVE_SSTREAM
00075 #define LOG4CPP_HAVE_SSTREAM 1
00076 #endif
00077 
00078 #define LOG4CPP_HAS_WCHAR_T 1
00079 
00080 /* define if the C library has snprintf */
00081 #ifndef LOG4CPP_HAVE_SNPRINTF
00082 #define LOG4CPP_HAVE_SNPRINTF 1
00083 #endif
00084 
00085 #if defined(_MSC_VER)
00086 #define LOG4CPP_HAVE_LOCALTIME_R 1
00087 #endif
00088 
00089 /* define to get around problems with ERROR in windows.h */
00090 #ifndef LOG4CPP_FIX_ERROR_COLLISION
00091 #define LOG4CPP_FIX_ERROR_COLLISION 1
00092 #endif
00093 
00094 /* define WIN32 for Borland */
00095 #ifndef WIN32
00096 #define WIN32
00097 #endif
00098 
00099 /* use threads */
00100 #ifndef LOG4CPP_HAVE_THREADING
00101 #define LOG4CPP_HAVE_THREADING
00102 #endif
00103 
00104 /* use ms threads */
00105 #ifndef LOG4CPP_USE_MSTHREADS
00106 #define LOG4CPP_USE_MSTHREADS
00107 #endif
00108 
00109 /* supply DLL main */
00110 #ifndef LOG4CPP_SUPPLY_DLLMAIN
00111 #define LOG4CPP_SUPPLY_DLLMAIN
00112 #endif
00113 
00114 /* MSVCs <cstdlib> and <cstring> headers are broken in the sense that they
00115    put functions in the global namespace instead of std::
00116    The #defines below enable a workaround for MSVC 6 and lower. If MSVC 7
00117    is still broken please adjust the _MSC_VER version check and report it.
00118    See also bug report #628211.
00119 */
00120 #if defined(_MSC_VER) && _MSC_VER < 1300
00121 
00122 #ifndef LOG4CPP_CSTDLIB_NOT_IN_STD
00123 #define LOG4CPP_CSTDLIB_NOT_IN_STD
00124 #endif
00125 
00126 #ifndef LOG4CPP_CSTRING_NOT_IN_STD
00127 #define LOG4CPP_CSTRING_NOT_IN_STD
00128 #endif
00129 
00130 #ifndef LOG4CPP_CTIME_NOT_IN_STD
00131 #define LOG4CPP_CTIME_NOT_IN_STD
00132 #endif
00133 
00134 #ifndef LOG4CPP_CMATH_NOT_IN_STD
00135 #define LOG4CPP_CMATH_NOT_IN_STD
00136 #endif
00137 
00138 #endif
00139 
00140 /* define mode_t. Move to Portability.hh if more platforms need it */
00141 #if !defined(__BORLANDC__)
00142 namespace log4cpp
00143 {
00144         typedef int mode_t;
00145 }
00146 #endif
00147 
00148 #if defined(_MSC_VER) && _MSC_VER == 1310
00149 // warning C4275: interface non dll class 'std::runtime_error' utilisée comme base 
00150 // d'une interface dll class 'log4cpp::ConfigureFailure'
00151 #pragma warning(disable: 4275)
00152 #endif
00153 
00154 /* _INCLUDE_LOG4CPP_CONFIG_WIN32_H */
00155 #endif


log4cpp
Author(s): Stephen Roderick, Bastiaan Bakker, Cedric Le Goater, Steve Ostlind, Marcel Harkema, Walter Stroebel, Glenn Scott and Tony Cheung
autogenerated on Sat Jun 8 2019 18:45:46