GDCM
2.0.18
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 00005 Copyright (c) 2006-2011 Mathieu Malaterre 00006 All rights reserved. 00007 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00014 00015 #ifndef GDCMWIN32_H 00016 #define GDCMWIN32_H 00017 00018 #if !defined(GDCMTYPES_H) 00019 #error you need to include gdcmTypes.h instead 00020 #endif 00021 //----------------------------------------------------------------------------- 00022 #if defined(WIN32) && defined(GDCM_BUILD_SHARED_LIBS) 00023 #if (defined(gdcmCommon_EXPORTS) || defined(gdcmDICT_EXPORTS) || defined(gdcmDSED_EXPORTS) || defined(gdcmIOD_EXPORTS) || defined(gdcmMSFF_EXPORTS) || defined(_gdcmswig_EXPORTS)) || defined(vtkgdcm_EXPORTS) 00024 #define GDCM_EXPORT __declspec( dllexport ) 00025 #else 00026 #define GDCM_EXPORT __declspec( dllimport ) 00027 #endif 00028 #else 00029 #define GDCM_EXPORT 00030 #endif 00031 00032 // In VTK 4.2 vtkWrapPython does not like anything other than VTK_*EXPORT 00033 // [ 86%] Generating vtkGDCMImageReaderPython.cxx 00034 // syntax error 00035 // *** SYNTAX ERROR found in parsing the header file /usr/local/src/gdcm2/tags/gdcm-2-0-11/Utilities/VTK/vtkGDCMImageReader.h before line 128*** 00036 // make[2]: *** [Utilities/VTK/vtkGDCMImageReaderPython.cxx] Error 1 00037 // make[1]: *** [Utilities/VTK/CMakeFiles/vtkgdcmPythonD.dir/all] Error 2 00038 // make: *** [all] Error 2 00039 00040 #if defined(VTK_MAJOR_VERSION) && ( VTK_MAJOR_VERSION == 4 ) 00041 #undef VTK_EXPORT 00042 #define VTK_EXPORT GDCM_EXPORT 00043 #endif 00044 00045 //----------------------------------------------------------------------------- 00046 //This is needed when compiling in debug mode 00047 #ifdef _MSC_VER 00048 // to allow construct such as: std::numeric_limits<int>::max() we need the following: 00049 // warning C4003: not enough actual parameters for macro 'max' 00050 #define NOMINMAX 00051 # pragma warning ( default : 4263 ) /* no override, call convention differs */ 00052 // 'identifier' : class 'type' needs to have dll-interface to be used by 00053 // clients of class 'type2' 00054 #pragma warning ( disable : 4251 ) 00055 // non dll-interface class 'type' used as base for dll-interface class 'type2' 00056 #pragma warning ( disable : 4275 ) 00057 // 'identifier' : identifier was truncated to 'number' characters in the 00058 // debug information 00059 #pragma warning ( disable : 4786 ) 00060 //'identifier' : decorated name length exceeded, name was truncated 00061 #pragma warning ( disable : 4503 ) 00062 // C++ exception specification ignored except to indicate a 00063 // function is not __declspec(nothrow) 00064 //#pragma warning ( disable : 4290 ) 00065 // signed/unsigned mismatch 00066 #pragma warning ( disable : 4018 ) 00067 // return type for 'identifier' is '' (ie; not a UDT or reference to UDT. Will 00068 // produce errors if applied using infix notation 00069 //#pragma warning ( disable : 4284 ) 00070 // 'type' : forcing value to bool 'true' or 'false' (performance warning) 00071 // //#pragma warning ( disable : 4800 ) 00072 #endif //_MSC_VER 00073 00074 //----------------------------------------------------------------------------- 00075 #endif //GDCMWIN32_H