1 /*=========================================================================
2  *
3  *  Copyright Insight Software Consortium
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at
8  *
9  *         http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  *=========================================================================*/
18 /** This file is used to create the smallest windows.h possible.
19  * Also it removes a few annoying #define's in windows.h. */
20 #ifndef itkWindows_h
21 #define itkWindows_h
22 #if defined(_MSC_VER) || defined(__MINGW32__) // if on Windows
23 #ifndef NOMINMAX
24 #define NOMINMAX
25 #endif
26 #ifdef WIN32_LEAN_AND_MEAN
27 #undef WIN32_LEAN_AND_MEAN
28 #endif
29 #define WIN32_LEAN_AND_MEAN
30 #include <windows.h>
31 #include <winbase.h>
32 #endif
33 #endif // _MSC_VER
34