config-win32.h 843 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 <winsock2.h>
  12. #undef LOG4C_API
  13. #ifdef LOG4C_EXPORTS
  14. # define LOG4C_API __declspec(dllexport)
  15. #else
  16. # define LOG4C_API extern __declspec(dllimport)
  17. #endif
  18. #undef LOG4C_DATA
  19. #ifdef LOG4C_EXPORTS
  20. # define LOG4C_DATA __declspec(dllexport)
  21. #else
  22. # define LOG4C_DATA extern __declspec(dllimport)
  23. #endif
  24. /* This is defined to be 'inline' by default,
  25. but with msvc6 undef it so that inlined
  26. functions are just normal functions.
  27. */
  28. #undef LOG4C_INLINE
  29. #define LOG4C_INLINE
  30. #define WITH_ROLLINGFILE 1
  31. #endif /* __log4c_config_win32_h */