config-MinGW32.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. #ifndef _INCLUDE_LOG4CPP_CONFIG_MINGW32_H
  8. #define _INCLUDE_LOG4CPP_CONFIG_MINGW32_H 1
  9. /* manually edited from include/log4cpp/config.h */
  10. /* Define if you have the syslog function. */
  11. /* #undef LOG4CPP_HAVE_SYSLOG */
  12. /* Define if you have the `ftime' function. */
  13. #ifndef LOG4CPP_HAVE_FTIME
  14. #define LOG4CPP_HAVE_FTIME 1
  15. #endif
  16. /* Define if you have the `gettimeofday' function. */
  17. /* #undef LOG4CPP_HAVE_GETTIMEOFDAY */
  18. /* define if the compiler has int64_t */
  19. #ifndef LOG4CPP_HAVE_INT64_T
  20. #define LOG4CPP_HAVE_INT64_T
  21. #define int64_t __int64
  22. /* define if the compiler has in_addr_t */
  23. #ifndef LOG4CPP_HAVE_IN_ADDR_T
  24. #define LOG4CPP_HAVE_IN_ADDR_T
  25. #ifndef u_long
  26. typedef unsigned long u_long;
  27. #endif
  28. /* u_long is the type of in_addr.s_addr */
  29. typedef u_long in_addr_t;
  30. /* u_short is the type of sockaddr_in.sin_port */
  31. // typedef u_short in_port_t;
  32. #endif
  33. #endif
  34. /* Define if you have the <io.h> header file. */
  35. #ifndef LOG4CPP_HAVE_IO_H
  36. #define LOG4CPP_HAVE_IO_H 1
  37. #endif
  38. /* Define if you have the <unistd.h> header file. */
  39. /* #undef LOG4CPP_HAVE_UNISTD_H */
  40. /* Define if you have the idsa library (-lidsa). */
  41. /* #undef LOG4CPP_HAVE_LIBIDSA */
  42. /* Define if you have the `strcasecmp' function. */
  43. /* #undef LOG4CPP_HAVE_STRCASECMP */
  44. /* Name of package */
  45. #ifndef LOG4CPP_PACKAGE
  46. #define LOG4CPP_PACKAGE "log4cpp"
  47. #endif
  48. /* Version number of package */
  49. #ifndef LOG4CPP_VERSION
  50. #define LOG4CPP_VERSION "1.0"
  51. #endif
  52. /* define if the compiler implements namespaces */
  53. #ifndef LOG4CPP_HAVE_NAMESPACES
  54. #define LOG4CPP_HAVE_NAMESPACES 1
  55. #endif
  56. /* define if the compiler has stringstream */
  57. #ifndef LOG4CPP_HAVE_SSTREAM
  58. #define LOG4CPP_HAVE_SSTREAM 1
  59. #endif
  60. #define LOG4CPP_HAS_WCHAR_T 0
  61. /* define if the C library has snprintf */
  62. #ifndef LOG4CPP_HAVE_SNPRINTF
  63. #define LOG4CPP_HAVE_SNPRINTF 1
  64. #endif
  65. //#define LOG4CPP_HAVE_LOCALTIME_R 0
  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. /* use threads */
  71. #ifndef LOG4CPP_HAVE_THREADING
  72. #define LOG4CPP_HAVE_THREADING
  73. # if defined(LOG4CPP_STLPORT_AND_BOOST_BUILD)
  74. # define LOG4CPP_USE_BOOSTTHREADS
  75. # else
  76. # define LOG4CPP_USE_MSTHREADS
  77. # endif
  78. #endif
  79. #endif