OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I686LINUX / util / I686LINUX / include / vtk / vtkWin32Header.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkWin32Header.h,v $
5   Language:  C++
6   Date:      $Date: 2003/02/14 15:25:46 $
7   Version:   $Revision: 1.29 $
8
9   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
10   All rights reserved.
11   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
12
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.
16
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. 
22
23 #ifndef __vtkWIN32Header_h
24 #define __vtkWIN32Header_h
25
26 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
27 Do_not_include_vtkWin32Header_directly__vtkSystemIncludes_includes_it;
28 #endif
29
30 #include "vtkConfigure.h"
31
32 //
33 // Windows specific stuff------------------------------------------
34 #if defined(_WIN32) || defined(WIN32)
35
36 // define strict header for windows
37 #ifndef STRICT
38 #define STRICT
39 #endif
40
41 #ifdef VTK_USE_ANSI_STDLIB
42 #ifndef NOMINMAX
43 #define NOMINMAX
44 #endif
45 #endif
46
47 #include <windows.h>
48
49 #ifdef _MSC_VER
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
62 #endif
63
64 #endif
65
66 #if defined(WIN32) && !defined(VTKSTATIC)
67  #define VTK_EXPORT __declspec( dllexport )
68
69  #if defined(vtkCommon_EXPORTS)
70   #define VTK_COMMON_EXPORT __declspec( dllexport ) 
71  #else
72   #define VTK_COMMON_EXPORT __declspec( dllimport ) 
73  #endif
74
75  #if defined(vtkFiltering_EXPORTS)
76   #define VTK_FILTERING_EXPORT __declspec( dllexport ) 
77  #else
78   #define VTK_FILTERING_EXPORT __declspec( dllimport ) 
79  #endif
80
81  #if defined(vtkImaging_EXPORTS)
82   #define VTK_IMAGING_EXPORT __declspec( dllexport ) 
83  #else
84   #define VTK_IMAGING_EXPORT __declspec( dllimport ) 
85  #endif
86
87  #if defined(vtkGraphics_EXPORTS)
88   #define VTK_GRAPHICS_EXPORT __declspec( dllexport ) 
89  #else
90   #define VTK_GRAPHICS_EXPORT __declspec( dllimport ) 
91  #endif
92
93  #if defined(vtkIO_EXPORTS)
94   #define VTK_IO_EXPORT __declspec( dllexport ) 
95  #else
96   #define VTK_IO_EXPORT __declspec( dllimport ) 
97  #endif
98
99  #if defined(vtkRendering_EXPORTS)
100   #define VTK_RENDERING_EXPORT __declspec( dllexport ) 
101  #else
102   #define VTK_RENDERING_EXPORT __declspec( dllimport ) 
103  #endif
104
105  #if defined(vtkHybrid_EXPORTS)
106   #define VTK_HYBRID_EXPORT __declspec( dllexport ) 
107  #else
108   #define VTK_HYBRID_EXPORT __declspec( dllimport ) 
109  #endif
110
111  #if defined(vtkParallel_EXPORTS)
112   #define VTK_PARALLEL_EXPORT __declspec( dllexport ) 
113  #else
114   #define VTK_PARALLEL_EXPORT __declspec( dllimport ) 
115  #endif
116
117  #if defined(vtkPatented_EXPORTS)
118   #define VTK_PATENTED_EXPORT __declspec( dllexport ) 
119  #else
120   #define VTK_PATENTED_EXPORT __declspec( dllimport ) 
121  #endif
122 #else
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
132  #define VTK_EXPORT
133 #endif
134
135 // this is exclusively for the tcl Init functions
136 #if defined(WIN32)
137  #define VTK_TK_EXPORT __declspec( dllexport )
138 #else
139  #define VTK_TK_EXPORT
140 #endif
141
142 #endif