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