Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkWin32Header.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkWin32Header.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:29 $ 00007 Version: $Revision: 1.28 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 Portions of this code are covered under the VTK copyright. 00013 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details. 00014 00015 This software is distributed WITHOUT ANY WARRANTY; without even 00016 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 PURPOSE. See the above copyright notices for more information. 00018 00019 =========================================================================*/ 00020 #ifndef __itkWIN32Header_h 00021 #define __itkWIN32Header_h 00022 00023 #include "itkConfigure.h" 00024 00025 // add in the Windows variants 00026 00027 #if defined(__CYGWIN__) 00028 #ifndef WIN32 00029 #define WIN32 1 00030 #endif 00031 #ifndef _WIN32 00032 #define _WIN32 1 00033 #endif 00034 #endif 00035 00037 #if defined(_MSC_VER) 00038 00039 // 'conversion' conversion from 'type1' to 'type2', possible loss of data 00040 #pragma warning ( disable : 4244 ) 00041 00042 // 'identifier' : truncation from 'type1' to 'type2' 00043 #pragma warning ( disable : 4305 ) 00044 00045 // 'conversion' : truncation of constant value 00046 #pragma warning ( disable : 4309 ) 00047 00048 // 'identifier' : identifier was truncated to 'number' characters in the 00049 // debug information 00050 #pragma warning ( disable : 4786 ) 00051 00052 // 'type' : forcing value to bool 'true' or 'false' (performance warning) 00053 #pragma warning ( disable : 4800 ) 00054 00055 // 'identifier' : class 'type' needs to have dll-interface to be used by 00056 // clients of class 'type2' 00057 #pragma warning ( disable : 4251 ) 00058 00059 00060 // non dll-interface class 'type' used as base for dll-interface class 'type2' 00061 #pragma warning ( disable : 4275 ) 00062 00063 // C++ exception specification ignored except to indicate a 00064 // function is not __declspec(nothrow) 00065 #pragma warning ( disable : 4290 ) 00066 00067 // 'type' : inconsistent dll linkage. dllexport assumed. 00068 #pragma warning ( disable : 4273 ) 00069 00070 00071 // typename keyword in default template arguments is not accepted by 00072 // MSVC. This macro should only be used in such places. 00073 # if !defined(CABLE_CONFIGURATION) && (_MSC_VER < 1310) 00074 # define ITK_TYPENAME 00075 # else 00076 # define ITK_TYPENAME typename 00077 # endif 00078 #else 00079 # define ITK_TYPENAME typename 00080 #endif 00081 00082 // ITK_EXPORT can not be used 00083 #define ITK_EXPORT 00084 00085 #if (defined(_WIN32) || defined(WIN32)) && !defined(ITKSTATIC) 00086 # ifdef ITKCommon_EXPORTS 00087 # define ITKCommon_EXPORT __declspec(dllexport) 00088 # else 00089 # define ITKCommon_EXPORT __declspec(dllimport) 00090 # endif /* ITKCommon_EXPORT */ 00091 #else 00092 /* unix needs nothing */ 00093 #define ITKCommon_EXPORT 00094 #endif 00095 00096 00097 #endif

Generated at Sun Apr 1 02:48:01 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000