config-win32.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. #ifndef _INCLUDE_LOG4CPP_CONFIG_WIN32_H
  2. #define _INCLUDE_LOG4CPP_CONFIG_WIN32_H 1
  3. /* manually edited from include/log4cpp/config.h */
  4. /* Define if you have the syslog function. */
  5. /* #undef LOG4CPP_HAVE_SYSLOG */
  6. /* Define if you have the `ftime' function. */
  7. #ifndef LOG4CPP_HAVE_FTIME
  8. #define LOG4CPP_HAVE_FTIME 1
  9. #endif
  10. /* Define if you have the `gettimeofday' function. */
  11. /* #undef LOG4CPP_HAVE_GETTIMEOFDAY */
  12. /* define if the compiler has int64_t */
  13. #ifndef LOG4CPP_HAVE_INT64_T
  14. #define LOG4CPP_HAVE_INT64_T
  15. //#define int64_t __int64
  16. typedef __int64 int64_t;
  17. /* define if the compiler has in_addr_t */
  18. #ifndef LOG4CPP_HAVE_IN_ADDR_T
  19. #define LOG4CPP_HAVE_IN_ADDR_T
  20. #ifndef u_long
  21. typedef unsigned long u_long;
  22. #endif
  23. /* u_long is the type of in_addr.s_addr */
  24. typedef u_long in_addr_t;
  25. /* u_short is the type of sockaddr_in.sin_port */
  26. // typedef u_short in_port_t;
  27. #endif
  28. #if defined(_MSC_VER) && _MSC_VER < 1300
  29. #define LOG4CPP_MISSING_INT64_OSTREAM_OP
  30. #endif
  31. #endif
  32. /* Define if you have the <io.h> header file. */
  33. #ifndef LOG4CPP_HAVE_IO_H
  34. #define LOG4CPP_HAVE_IO_H 1
  35. #endif
  36. /* Define if you have the <unistd.h> header file. */
  37. /* #undef LOG4CPP_HAVE_UNISTD_H */
  38. /* Define if you have the idsa library (-lidsa). */
  39. /* #undef LOG4CPP_HAVE_LIBIDSA */
  40. /* Define if you have the `strcasecmp' function. */
  41. /* #undef LOG4CPP_HAVE_STRCASECMP */
  42. /* Name of package */
  43. #ifndef LOG4CPP_PACKAGE
  44. #define LOG4CPP_PACKAGE "log4cpp"
  45. #endif
  46. /* Version number of package */
  47. #ifndef LOG4CPP_VERSION
  48. #define LOG4CPP_VERSION "0.3.5"
  49. #endif
  50. /* define if the compiler implements namespaces */
  51. #ifndef LOG4CPP_HAVE_NAMESPACES
  52. #define LOG4CPP_HAVE_NAMESPACES 1
  53. #endif
  54. /* define if the compiler has stringstream */
  55. #ifndef LOG4CPP_HAVE_SSTREAM
  56. #define LOG4CPP_HAVE_SSTREAM 1
  57. #endif
  58. #define LOG4CPP_HAS_WCHAR_T 1
  59. /* define if the C library has snprintf */
  60. #ifndef LOG4CPP_HAVE_SNPRINTF
  61. #define LOG4CPP_HAVE_SNPRINTF 1
  62. #endif
  63. #if defined(_MSC_VER) && _MSC_VER >= 1400
  64. #define LOG4CPP_HAVE_LOCALTIME_R 1
  65. #endif
  66. /* define to get around problems with ERROR in windows.h */
  67. #ifndef LOG4CPP_FIX_ERROR_COLLISION
  68. #define LOG4CPP_FIX_ERROR_COLLISION 1
  69. #endif
  70. /* define WIN32 for Borland */
  71. #ifndef WIN32
  72. #define WIN32
  73. #endif
  74. /* use threads */
  75. #ifndef LOG4CPP_HAVE_THREADING
  76. #define LOG4CPP_HAVE_THREADING
  77. #endif
  78. /* use ms threads */
  79. #ifndef LOG4CPP_USE_MSTHREADS
  80. #define LOG4CPP_USE_MSTHREADS
  81. #endif
  82. /* supply DLL main */
  83. #ifndef LOG4CPP_SUPPLY_DLLMAIN
  84. #define LOG4CPP_SUPPLY_DLLMAIN
  85. #endif
  86. /* MSVCs <cstdlib> and <cstring> headers are broken in the sense that they
  87. put functions in the global namespace instead of std::
  88. The #defines below enable a workaround for MSVC 6 and lower. If MSVC 7
  89. is still broken please adjust the _MSC_VER version check and report it.
  90. See also bug report #628211.
  91. */
  92. #if defined(_MSC_VER) && _MSC_VER < 1300
  93. #ifndef LOG4CPP_CSTDLIB_NOT_IN_STD
  94. #define LOG4CPP_CSTDLIB_NOT_IN_STD
  95. #endif
  96. #ifndef LOG4CPP_CSTRING_NOT_IN_STD
  97. #define LOG4CPP_CSTRING_NOT_IN_STD
  98. #endif
  99. #ifndef LOG4CPP_CTIME_NOT_IN_STD
  100. #define LOG4CPP_CTIME_NOT_IN_STD
  101. #endif
  102. #ifndef LOG4CPP_CMATH_NOT_IN_STD
  103. #define LOG4CPP_CMATH_NOT_IN_STD
  104. #endif
  105. #endif
  106. /* define mode_t. Move to Portability.hh if more platforms need it */
  107. #if !defined(__BORLANDC__)
  108. #ifndef LOG4CPP_HAVE_MODE_T
  109. #define LOG4CPP_HAVE_MODE_T
  110. typedef int mode_t;
  111. #endif
  112. #endif
  113. #if defined(_MSC_VER) && _MSC_VER == 1310
  114. // warning C4275: interface non dll class 'std::runtime_error' utilisée comme base
  115. // d'une interface dll class 'log4cpp::ConfigureFailure'
  116. #pragma warning(disable: 4275)
  117. #endif
  118. /* _INCLUDE_LOG4CPP_CONFIG_WIN32_H */
  119. #endif