config-win32.h 970 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* $Id$
  2. *
  3. * See the COPYING file for the terms of usage and distribution.
  4. */
  5. /* This file defines some labels as required for
  6. compiling with Microsoft Visual C++ 6
  7. */
  8. #ifndef __log4c_config_win32_h
  9. #define __log4c_config_win32_h
  10. #include <time.h>
  11. //#include <windows.h>
  12. //#include <winsock.h>
  13. #include <winsock2.h>
  14. #if !defined(__MINGW32__) && !defined(__MINGW64__)
  15. #undef LOG4C_API
  16. #ifdef LOG4C_EXPORTS
  17. # define LOG4C_API __declspec(dllexport)
  18. #else
  19. # define LOG4C_API extern __declspec(dllimport)
  20. #endif
  21. #undef LOG4C_DATA
  22. #ifdef LOG4C_EXPORTS
  23. # define LOG4C_DATA __declspec(dllexport)
  24. #else
  25. # define LOG4C_DATA extern __declspec(dllimport)
  26. #endif
  27. /* This is defined to be 'inline' by default,
  28. but with msvc6 undef it so that inlined
  29. functions are just normal functions.
  30. */
  31. #undef LOG4C_INLINE
  32. #define LOG4C_INLINE
  33. #define WITH_ROLLINGFILE 1
  34. #endif /* !__MINGW32__ && !__MINGW64__ */
  35. #endif /* __log4c_config_win32_h */