1 // -*- C++ -*-
2 // Module:  Log4CPLUS
3 // File:    windowsh-inc.h
4 // Created: 4/2010
5 // Author:  Vaclav Zeman
6 //
7 //
8 //  Copyright (C) 2010-2013, Vaclav Zeman. All rights reserved.
9 //
10 //  Redistribution and use in source and binary forms, with or without modifica-
11 //  tion, are permitted provided that the following conditions are met:
12 //
13 //  1. Redistributions of  source code must  retain the above copyright  notice,
14 //     this list of conditions and the following disclaimer.
15 //
16 //  2. Redistributions in binary form must reproduce the above copyright notice,
17 //     this list of conditions and the following disclaimer in the documentation
18 //     and/or other materials provided with the distribution.
19 //
20 //  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
21 //  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
22 //  FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE
23 //  APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,
24 //  INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-
25 //  DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS
26 //  OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON
27 //  ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT
28 //  (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF
29 //  THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 // NOTE: This file is a fragment intentionally left without include guards.
32 
33 #if defined (_WIN32)
34 #undef WIN32_LEAN_AND_MEAN
35 #define WIN32_LEAN_AND_MEAN
36 
37 #undef NOGDICAPMASKS
38 #define NOGDICAPMASKS
39 
40 #undef NOVIRTUALKEYCODES
41 #define NOVIRTUALKEYCODES
42 
43 #undef NOWINMESSAGES
44 #define NOWINMESSAGES
45 
46 #undef NOWINSTYLES
47 #define NOWINSTYLES
48 
49 #undef NOSYSMETRICS
50 #define NOSYSMETRICS
51 
52 #undef NOMENUS
53 #define NOMENUS
54 
55 #undef NOICONS
56 #define NOICONS
57 
58 #undef NOKEYSTATES
59 #define NOKEYSTATES
60 
61 #undef NOSYSCOMMANDS
62 #define NOSYSCOMMANDS
63 
64 #undef NORASTEROPS
65 #define NORASTEROPS
66 
67 #undef NOSHOWWINDOW
68 #define NOSHOWWINDOW
69 
70 #undef NOATOM
71 #define NOATOM
72 
73 #undef NOCLIPBOARD
74 #define NOCLIPBOARD
75 
76 #undef NOCOLOR
77 #define NOCOLOR
78 
79 #undef NOCTLMGR
80 #define NOCTLMGR
81 
82 #undef NODRAWTEXT
83 #define NODRAWTEXT
84 
85 #undef NOGDI
86 #define NOGDI
87 
88 #undef NOKERNEL
89 #define NOKERNEL
90 
91 #undef NOUSER
92 #define NOUSER
93 
94 #undef NONLS
95 #define NONLS
96 
97 #undef NOMB
98 #define NOMB
99 
100 #undef NOMEMMGR
101 #define NOMEMMGR
102 
103 #undef NOMETAFILE
104 #define NOMETAFILE
105 
106 #undef NOMINMAX
107 #define NOMINMAX
108 
109 #undef NOMSG
110 #define NOMSG
111 
112 #undef NOOPENFILE
113 #define NOOPENFILE
114 
115 #undef NOSCROLL
116 #define NOSCROLL
117 
118 #undef NOSERVICE
119 #define NOSERVICE
120 
121 #undef NOSOUND
122 #define NOSOUND
123 
124 #undef NOTEXTMETRIC
125 #define NOTEXTMETRIC
126 
127 #undef NOWH
128 #define NOWH
129 
130 #undef NOWINOFFSETS
131 #define NOWINOFFSETS
132 
133 #undef NOCOMM
134 #define NOCOMM
135 
136 #undef NOKANJI
137 #define NOKANJI
138 
139 #undef NOHELP
140 #define NOHELP
141 
142 #undef NOPROFILER
143 #define NOPROFILER
144 
145 #undef NODEFERWINDOWPOS
146 #define NODEFERWINDOWPOS
147 
148 #undef NOMCX
149 #define NOMCX
150 
151 #include <winsock2.h>
152 #include <ws2tcpip.h>
153 #include <windows.h>
154 #if defined (LOG4CPLUS_HAVE_INTRIN_H)
155 #include <intrin.h>
156 #endif
157 #endif
158 
159 // NOTE: This file is a fragment intentionally left without include guards.
160