Orfeo Toolbox  3.16
itkWin32Header.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkWin32Header.h,v $
5  Language: C++
6  Date: $Date: 2008-05-19 14:34:10 $
7  Version: $Revision: 1.32 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  Portions of this code are covered under the VTK copyright.
13  See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
14 
15  This software is distributed WITHOUT ANY WARRANTY; without even
16  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
17  PURPOSE. See the above copyright notices for more information.
18 
19 =========================================================================*/
20 #ifndef __itkWin32Header_h
21 #define __itkWin32Header_h
22 
23 #include "itkConfigure.h"
24 
25 // add in the Windows variants
26 
27 #if defined(__CYGWIN__)
28 #ifndef WIN32
29 #define WIN32 1
30 #endif
31 #ifndef _WIN32
32 #define _WIN32 1
33 #endif
34 #endif
35 
37 #if defined(_MSC_VER)
38 
39 // 'conversion' conversion from 'type1' to 'type2', possible loss of data
40 #pragma warning ( disable : 4244 )
41 
42 // 'identifier' : truncation from 'type1' to 'type2'
43 #pragma warning ( disable : 4305 )
44 
45 // 'conversion' : truncation of constant value
46 #pragma warning ( disable : 4309 )
47 
48 // decorated name length exceeded, name was truncated
49 #pragma warning ( disable : 4503 )
50 
51 // 'identifier' : identifier was truncated to 'number' characters in the
52 // debug information
53 #pragma warning ( disable : 4786 )
54 
55 // 'type' : forcing value to bool 'true' or 'false' (performance warning)
56 #pragma warning ( disable : 4800 )
57 
58 // 'identifier' : class 'type' needs to have dll-interface to be used by
59 // clients of class 'type2'
60 #pragma warning ( disable : 4251 )
61 
62 // non dll-interface class 'type' used as base for dll-interface class 'type2'
63 #pragma warning ( disable : 4275 )
64 
65 // C++ exception specification ignored except to indicate a
66 // function is not __declspec(nothrow)
67 #pragma warning ( disable : 4290 )
68 
69 // 'type' : inconsistent dll linkage. dllexport assumed.
70 #pragma warning ( disable : 4273 )
71 
72 // conditional expression is constant
73 #pragma warning ( disable : 4127 )
74 
75 // unreferenced local function has been removed
76 #pragma warning ( disable : 4505 )
77 
78 
79 // typename keyword in default template arguments is not accepted by
80 // MSVC. This macro should only be used in such places.
81 # if !defined(CABLE_CONFIGURATION) && (_MSC_VER < 1310)
82 # define ITK_TYPENAME
83 # else
84 # define ITK_TYPENAME typename
85 # endif
86 #else
87 # define ITK_TYPENAME typename
88 #endif
89 
90 // When a class definition has ITK_EXPORT, the class will be
91 // checked automatically, by Utilities/Dart/PrintSelfCheck.tcl
92 #define ITK_EXPORT
93 
94 #if (defined(_WIN32) || defined(WIN32)) && !defined(ITKSTATIC)
95 # ifdef ITKCommon_EXPORTS
96 # define ITKCommon_EXPORT __declspec(dllexport)
97 # else
98 # define ITKCommon_EXPORT __declspec(dllimport)
99 # endif /* ITKCommon_EXPORT */
100 #else
101 /* unix needs nothing */
102 #define ITKCommon_EXPORT
103 #endif
104 
105 
106 #endif

Generated at Sun Feb 3 2013 00:15:00 for Orfeo Toolbox with doxygen 1.8.1.1