1 /*=========================================================================
3 Program: Visualization Toolkit
4 Module: $RCSfile: vtkWin32Header.h,v $
6 Date: $Date: 2003/02/14 15:25:46 $
7 Version: $Revision: 1.29 $
9 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
11 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notice for more information.
17 =========================================================================*/
18 // .NAME vtkWin32Header - manage Windows system differences
19 // .SECTION Description
20 // The vtkWin32Header captures some system differences between Unix and
21 // Windows operating systems.
23 #ifndef __vtkWIN32Header_h
24 #define __vtkWIN32Header_h
26 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
27 Do_not_include_vtkWin32Header_directly__vtkSystemIncludes_includes_it;
30 #include "vtkConfigure.h"
33 // Windows specific stuff------------------------------------------
34 #if defined(_WIN32) || defined(WIN32)
36 // define strict header for windows
41 #ifdef VTK_USE_ANSI_STDLIB
50 // Handle MSVC compiler warning messages, etc.
51 #ifndef VTK_DISPLAY_WIN32_WARNINGS
52 #pragma warning ( disable : 4127 )
53 #pragma warning ( disable : 4244 )
54 #pragma warning ( disable : 4251 )
55 #pragma warning ( disable : 4305 )
56 #pragma warning ( disable : 4309 )
57 #pragma warning ( disable : 4710 )
58 #pragma warning ( disable : 4706 )
59 #pragma warning ( disable : 4786 )
60 #pragma warning ( disable : 4097 )
61 #endif //VTK_DISPLAY_WIN32_WARNINGS
66 #if defined(WIN32) && !defined(VTKSTATIC)
67 #define VTK_EXPORT __declspec( dllexport )
69 #if defined(vtkCommon_EXPORTS)
70 #define VTK_COMMON_EXPORT __declspec( dllexport )
72 #define VTK_COMMON_EXPORT __declspec( dllimport )
75 #if defined(vtkFiltering_EXPORTS)
76 #define VTK_FILTERING_EXPORT __declspec( dllexport )
78 #define VTK_FILTERING_EXPORT __declspec( dllimport )
81 #if defined(vtkImaging_EXPORTS)
82 #define VTK_IMAGING_EXPORT __declspec( dllexport )
84 #define VTK_IMAGING_EXPORT __declspec( dllimport )
87 #if defined(vtkGraphics_EXPORTS)
88 #define VTK_GRAPHICS_EXPORT __declspec( dllexport )
90 #define VTK_GRAPHICS_EXPORT __declspec( dllimport )
93 #if defined(vtkIO_EXPORTS)
94 #define VTK_IO_EXPORT __declspec( dllexport )
96 #define VTK_IO_EXPORT __declspec( dllimport )
99 #if defined(vtkRendering_EXPORTS)
100 #define VTK_RENDERING_EXPORT __declspec( dllexport )
102 #define VTK_RENDERING_EXPORT __declspec( dllimport )
105 #if defined(vtkHybrid_EXPORTS)
106 #define VTK_HYBRID_EXPORT __declspec( dllexport )
108 #define VTK_HYBRID_EXPORT __declspec( dllimport )
111 #if defined(vtkParallel_EXPORTS)
112 #define VTK_PARALLEL_EXPORT __declspec( dllexport )
114 #define VTK_PARALLEL_EXPORT __declspec( dllimport )
117 #if defined(vtkPatented_EXPORTS)
118 #define VTK_PATENTED_EXPORT __declspec( dllexport )
120 #define VTK_PATENTED_EXPORT __declspec( dllimport )
123 #define VTK_COMMON_EXPORT
124 #define VTK_FILTERING_EXPORT
125 #define VTK_GRAPHICS_EXPORT
126 #define VTK_IMAGING_EXPORT
127 #define VTK_IO_EXPORT
128 #define VTK_RENDERING_EXPORT
129 #define VTK_HYBRID_EXPORT
130 #define VTK_PARALLEL_EXPORT
131 #define VTK_PATENTED_EXPORT
135 // this is exclusively for the tcl Init functions
137 #define VTK_TK_EXPORT __declspec( dllexport )
139 #define VTK_TK_EXPORT