OFFIS DCMTK  Version 3.6.0
win32.h
Go to the documentation of this file.
1 // Module: Log4CPLUS
2 // File: config-win32.h
3 // Created: 4/2003
4 // Author: Tad E. Smith
5 //
6 //
7 // Copyright 2003-2009 Tad E. Smith
8 //
9 // Licensed under the Apache License, Version 2.0 (the "License");
10 // you may not use this file except in compliance with the License.
11 // You may obtain a copy of the License at
12 //
13 // http://www.apache.org/licenses/LICENSE-2.0
14 //
15 // Unless required by applicable law or agreed to in writing, software
16 // distributed under the License is distributed on an "AS IS" BASIS,
17 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 // See the License for the specific language governing permissions and
19 // limitations under the License.
20 
23 #ifndef LOG4CPLUS_CONFIG_WIN32_HEADER_
24 #define LOG4CPLUS_CONFIG_WIN32_HEADER_
25 
26 #ifdef _WIN32
27 #include <windows.h>
28 
29 /* Define if you have the ftime function. */
30 #define LOG4CPLUS_HAVE_FTIME 1
31 
32 #if defined (_WIN32_WCE)
33 # define LOG4CPLUS_DLLMAIN_HINSTANCE HANDLE
34 # undef LOG4CPLUS_HAVE_NT_EVENT_LOG
35 #else
36 # define LOG4CPLUS_DLLMAIN_HINSTANCE HINSTANCE
37 # define LOG4CPLUS_HAVE_NT_EVENT_LOG
38 # define LOG4CPLUS_HAVE_WIN32_CONSOLE
39 #endif
40 
41 // log4cplus_EXPORTS is used by the CMake build system. DLL_EXPORT is
42 // used by the autotools build system.
43 #if defined (log4cplus_EXPORTS) || defined (DLL_EXPORT)
44 # undef LOG4CPLUS_BUILD_DLL
45 # define LOG4CPLUS_BUILD_DLL
46 #endif
47 
48 #if ! defined (LOG4CPLUS_BUILD_DLL)
49 # undef LOG4CPLUS_STATIC
50 # define LOG4CPLUS_STATIC
51 #endif
52 
53 #if defined (LOG4CPLUS_STATIC) && defined (LOG4CPLUS_BUILD_DLL)
54 # error LOG4CPLUS_STATIC and LOG4CPLUS_BUILD_DLL cannot be defined both.
55 #endif
56 
57 #if defined (LOG4CPLUS_BUILD_DLL)
58 # if defined (INSIDE_LOG4CPLUS)
59 # define LOG4CPLUS_EXPORT __declspec(dllexport)
60 # else
61 # define LOG4CPLUS_EXPORT __declspec(dllimport)
62 # endif
63 #else
64 # define LOG4CPLUS_EXPORT
65 #endif
66 
67 #ifndef LOG4CPLUS_SINGLE_THREADED
68 # define LOG4CPLUS_USE_WIN32_THREADS
69 #endif
70 
71 #if defined(_MSC_VER)
72  // Warning about: identifier was truncated to '255' characters in the debug information
73 # pragma warning( disable : 4786 )
74  // Warning about: <type1> needs to have dll-interface to be used by clients of class <type2>
75 # pragma warning( disable : 4251 )
76 
77 # if _MSC_VER >= 1400
78 # define LOG4CPLUS_WORKING_LOCALE
79 # endif
80 
81 #endif
82 
83 
84 #endif // _WIN32
85 #endif // LOG4CPLUS_CONFIG_WIN32_HEADER_
86 


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2