1 // Module: Log4CPLUS
2 // File: config-win32.h
3 // Created: 4/2003
4 // Author: Tad E. Smith
5 //
6 //
7 // Copyright (C) Tad E. Smith All rights reserved.
8 //
9 // This software is published under the terms of the Apache Software
10 // License version 1.1, a copy of which has been included with this
11 // distribution in the LICENSE.APL file.
12 //
13
14 /** @file */
15
16 #ifndef LOG4CPLUS_CONFIG_WIN32_HEADER_
17 #define LOG4CPLUS_CONFIG_WIN32_HEADER_
18
19 #ifdef _WIN32
20
21 /* Define if you have the ftime function. */
22 #define HAVE_FTIME 1
23
24 /* Define if you have the <sstream> header file. */
25 #define HAVE_SSTREAM 1
26
27 #ifdef LOG4CPLUS_STATIC
28 # define LOG4CPLUS_EXPORT
29 #else
30 # ifdef LOG4CPLUS_BUILD_DLL
31 # define LOG4CPLUS_EXPORT __declspec(dllexport)
32 # else
33 # define LOG4CPLUS_EXPORT __declspec(dllimport)
34 # endif
35 #endif
36
37 #ifndef LOG4CPLUS_SINGLE_THREADED
38 # define LOG4CPLUS_USE_WIN32_THREADS
39 #endif
40
41 #if defined(_MSC_VER)
42 // Warning about: identifier was truncated to '255' characters in the debug information
43 # pragma warning( disable : 4786 )
44 // Warning about: <type1> needs to have dll-interface to be used by clients of class <type2>
45 # pragma warning( disable : 4251 )
46 #endif
47
48
49 #endif // _WIN32
50 #endif // LOG4CPLUS_CONFIG_WIN32_HEADER_
syntax highlighted by Code2HTML, v. 0.9.1