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

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-2001 Ken Martin, Will Schroeder, Bill Lorensen 
00008 All rights reserved.
00009 
00010 Redistribution and use in source and binary forms, with or without
00011 modification, are permitted provided that the following conditions are met:
00012 
00013  * Redistributions of source code must retain the above copyright notice,
00014    this list of conditions and the following disclaimer.
00015 
00016  * Redistributions in binary form must reproduce the above copyright notice,
00017    this list of conditions and the following disclaimer in the documentation
00018    and/or other materials provided with the distribution.
00019 
00020  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
00021    of any contributors may be used to endorse or promote products derived
00022    from this software without specific prior written permission.
00023 
00024  * Modified source versions must be plainly marked as such, and must not be
00025    misrepresented as being the original software.
00026 
00027 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00028 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00029 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00030 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
00031 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00032 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
00033 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
00034 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00035 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
00036 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00037 
00038 =========================================================================*/
00051 #ifndef __vtkWIN32Header_h
00052 #define __vtkWIN32Header_h
00053 
00054 #include "vtkConfigure.h"
00055 
00056 //
00057 // Windows specific stuff------------------------------------------
00058 #if defined(_WIN32) || defined(WIN32)
00059 
00060 // define strict header for windows
00061 #ifndef STRICT
00062 #define STRICT
00063 #endif
00064 
00065 #ifdef VTK_USE_ANSI_STDLIB
00066 #define NOMINMAX
00067 #endif
00068 
00069 #include <windows.h>
00070 
00071 // Handle compiler warning messages, etc.
00072 #pragma warning ( disable : 4251 )
00073 #pragma warning ( disable : 4786 )
00074 #pragma warning ( disable : 4244 )
00075 #pragma warning ( disable : 4305 )
00076 #pragma warning ( disable : 4309 )
00077 #endif
00078 
00079 #if defined(WIN32) && !defined(VTKSTATIC)
00080  #define VTK_EXPORT __declspec( dllexport )
00081 
00082  #if defined(vtkCommon_EXPORTS)
00083   #define VTK_COMMON_EXPORT __declspec( dllexport ) 
00084  #else
00085   #define VTK_COMMON_EXPORT __declspec( dllimport ) 
00086  #endif
00087 
00088  #if defined(vtkFiltering_EXPORTS)
00089   #define VTK_FILTERING_EXPORT __declspec( dllexport ) 
00090  #else
00091   #define VTK_FILTERING_EXPORT __declspec( dllimport ) 
00092  #endif
00093 
00094  #if defined(vtkImaging_EXPORTS)
00095   #define VTK_IMAGING_EXPORT __declspec( dllexport ) 
00096  #else
00097   #define VTK_IMAGING_EXPORT __declspec( dllimport ) 
00098  #endif
00099 
00100  #if defined(vtkGraphics_EXPORTS)
00101   #define VTK_GRAPHICS_EXPORT __declspec( dllexport ) 
00102  #else
00103   #define VTK_GRAPHICS_EXPORT __declspec( dllimport ) 
00104  #endif
00105 
00106  #if defined(vtkIO_EXPORTS)
00107   #define VTK_IO_EXPORT __declspec( dllexport ) 
00108  #else
00109   #define VTK_IO_EXPORT __declspec( dllimport ) 
00110  #endif
00111 
00112  #if defined(vtkRendering_EXPORTS)
00113   #define VTK_RENDERING_EXPORT __declspec( dllexport ) 
00114  #else
00115   #define VTK_RENDERING_EXPORT __declspec( dllimport ) 
00116  #endif
00117 
00118  #if defined(vtkHybrid_EXPORTS)
00119   #define VTK_HYBRID_EXPORT __declspec( dllexport ) 
00120  #else
00121   #define VTK_HYBRID_EXPORT __declspec( dllimport ) 
00122  #endif
00123 
00124  #if defined(vtkParallel_EXPORTS)
00125   #define VTK_PARALLEL_EXPORT __declspec( dllexport ) 
00126  #else
00127   #define VTK_PARALLEL_EXPORT __declspec( dllimport ) 
00128  #endif
00129 
00130  #if defined(vtkPatented_EXPORTS)
00131   #define VTK_PATENTED_EXPORT __declspec( dllexport ) 
00132  #else
00133   #define VTK_PATENTED_EXPORT __declspec( dllimport ) 
00134  #endif
00135 #else
00136  #define VTK_COMMON_EXPORT
00137  #define VTK_FILTERING_EXPORT
00138  #define VTK_GRAPHICS_EXPORT
00139  #define VTK_IMAGING_EXPORT
00140  #define VTK_IO_EXPORT
00141  #define VTK_RENDERING_EXPORT
00142  #define VTK_HYBRID_EXPORT
00143  #define VTK_PARALLEL_EXPORT
00144  #define VTK_PATENTED_EXPORT
00145  #define VTK_EXPORT
00146 #endif
00147 
00148 // this is exclusively for the tcl Init functions
00149 #if defined(WIN32)
00150  #define VTK_TK_EXPORT __declspec( dllexport )
00151 #else
00152  #define VTK_TK_EXPORT
00153 #endif
00154 
00155 #endif

Generated on Thu Mar 28 14:19:18 2002 for VTK by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001