Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkWin32Header.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkWin32Header.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00026 #ifndef __vtkWIN32Header_h
00027 #define __vtkWIN32Header_h
00028 
00029 #ifndef __VTK_SYSTEM_INCLUDES__INSIDE
00030 Do_not_include_vtkWin32Header_directly__vtkSystemIncludes_includes_it;
00031 #endif
00032 
00033 #include "vtkConfigure.h"
00034 
00035 //
00036 // Windows specific stuff------------------------------------------
00037 #if defined(_WIN32) || defined(WIN32)
00038 
00039 // define strict header for windows
00040 #ifndef STRICT
00041 #define STRICT
00042 #endif
00043 
00044 #ifdef VTK_USE_ANSI_STDLIB
00045 #ifndef NOMINMAX
00046 #define NOMINMAX
00047 #endif
00048 #endif
00049 
00050 #include <windows.h>
00051 
00052 #ifdef _MSC_VER
00053 // Handle MSVC compiler warning messages, etc.
00054 #ifndef VTK_DISPLAY_WIN32_WARNINGS
00055 #pragma warning ( disable : 4127 )
00056 #pragma warning ( disable : 4244 )
00057 #pragma warning ( disable : 4251 )
00058 #pragma warning ( disable : 4305 )
00059 #pragma warning ( disable : 4309 )
00060 #pragma warning ( disable : 4710 )
00061 #pragma warning ( disable : 4706 )
00062 #pragma warning ( disable : 4786 )
00063 #pragma warning ( disable : 4097 )
00064 #endif //VTK_DISPLAY_WIN32_WARNINGS
00065 #endif
00066 
00067 #endif
00068 
00069 #if defined(WIN32) && !defined(VTKSTATIC)
00070  #define VTK_EXPORT __declspec( dllexport )
00071 
00072  #if defined(vtkCommon_EXPORTS)
00073   #define VTK_COMMON_EXPORT __declspec( dllexport ) 
00074  #else
00075   #define VTK_COMMON_EXPORT __declspec( dllimport ) 
00076  #endif
00077 
00078  #if defined(vtkFiltering_EXPORTS)
00079   #define VTK_FILTERING_EXPORT __declspec( dllexport ) 
00080  #else
00081   #define VTK_FILTERING_EXPORT __declspec( dllimport ) 
00082  #endif
00083 
00084  #if defined(vtkImaging_EXPORTS)
00085   #define VTK_IMAGING_EXPORT __declspec( dllexport ) 
00086  #else
00087   #define VTK_IMAGING_EXPORT __declspec( dllimport ) 
00088  #endif
00089 
00090  #if defined(vtkGraphics_EXPORTS)
00091   #define VTK_GRAPHICS_EXPORT __declspec( dllexport ) 
00092  #else
00093   #define VTK_GRAPHICS_EXPORT __declspec( dllimport ) 
00094  #endif
00095 
00096  #if defined(vtkIO_EXPORTS)
00097   #define VTK_IO_EXPORT __declspec( dllexport ) 
00098  #else
00099   #define VTK_IO_EXPORT __declspec( dllimport ) 
00100  #endif
00101 
00102  #if defined(vtkRendering_EXPORTS)
00103   #define VTK_RENDERING_EXPORT __declspec( dllexport ) 
00104  #else
00105   #define VTK_RENDERING_EXPORT __declspec( dllimport ) 
00106  #endif
00107 
00108  #if defined(vtkHybrid_EXPORTS)
00109   #define VTK_HYBRID_EXPORT __declspec( dllexport ) 
00110  #else
00111   #define VTK_HYBRID_EXPORT __declspec( dllimport ) 
00112  #endif
00113 
00114  #if defined(vtkParallel_EXPORTS)
00115   #define VTK_PARALLEL_EXPORT __declspec( dllexport ) 
00116  #else
00117   #define VTK_PARALLEL_EXPORT __declspec( dllimport ) 
00118  #endif
00119 
00120  #if defined(vtkPatented_EXPORTS)
00121   #define VTK_PATENTED_EXPORT __declspec( dllexport ) 
00122  #else
00123   #define VTK_PATENTED_EXPORT __declspec( dllimport ) 
00124  #endif
00125 #else
00126  #define VTK_COMMON_EXPORT
00127  #define VTK_FILTERING_EXPORT
00128  #define VTK_GRAPHICS_EXPORT
00129  #define VTK_IMAGING_EXPORT
00130  #define VTK_IO_EXPORT
00131  #define VTK_RENDERING_EXPORT
00132  #define VTK_HYBRID_EXPORT
00133  #define VTK_PARALLEL_EXPORT
00134  #define VTK_PATENTED_EXPORT
00135  #define VTK_EXPORT
00136 #endif
00137 
00138 // this is exclusively for the tcl Init functions
00139 #if defined(WIN32)
00140  #define VTK_TK_EXPORT __declspec( dllexport )
00141 #else
00142  #define VTK_TK_EXPORT
00143 #endif
00144 
00145 #endif