GDCM  2.2.0
gdcmWin32.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: GDCM (Grassroots DICOM). A DICOM library
4 
5  Copyright (c) 2006-2011 Mathieu Malaterre
6  All rights reserved.
7  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 
15 #ifndef GDCMWIN32_H
16 #define GDCMWIN32_H
17 
18 #if !defined(GDCMTYPES_H)
19 #error you need to include gdcmTypes.h instead
20 #endif
21 //-----------------------------------------------------------------------------
22 #if defined(WIN32) && defined(GDCM_BUILD_SHARED_LIBS)
23  #if (defined(gdcmCommon_EXPORTS) || defined(gdcmDICT_EXPORTS) || defined(gdcmDSED_EXPORTS) || defined(gdcmIOD_EXPORTS) || defined(gdcmMSFF_EXPORTS) || defined(gdcmMEXD_EXPORTS)|| defined(_gdcmswig_EXPORTS)) || defined(vtkgdcm_EXPORTS)
24  #define GDCM_EXPORT __declspec( dllexport )
25  #else
26  #define GDCM_EXPORT __declspec( dllimport )
27  #endif
28 #else
29  #define GDCM_EXPORT
30 #endif
31 
32 // In VTK 4.2 vtkWrapPython does not like anything other than VTK_*EXPORT
33 // [ 86%] Generating vtkGDCMImageReaderPython.cxx
34 // syntax error
35 // *** SYNTAX ERROR found in parsing the header file /usr/local/src/gdcm2/tags/gdcm-2-0-11/Utilities/VTK/vtkGDCMImageReader.h before line 128***
36 // make[2]: *** [Utilities/VTK/vtkGDCMImageReaderPython.cxx] Error 1
37 // make[1]: *** [Utilities/VTK/CMakeFiles/vtkgdcmPythonD.dir/all] Error 2
38 // make: *** [all] Error 2
39 
40 #if defined(VTK_MAJOR_VERSION) && ( VTK_MAJOR_VERSION == 4 )
41 #undef VTK_EXPORT
42 #define VTK_EXPORT GDCM_EXPORT
43 #endif
44 
45 //-----------------------------------------------------------------------------
46 //This is needed when compiling in debug mode
47 #ifdef _MSC_VER
48 // to allow construct such as: std::numeric_limits<int>::max() we need the following:
49 // warning C4003: not enough actual parameters for macro 'max'
50 #define NOMINMAX
51 # pragma warning ( default : 4263 ) /* no override, call convention differs */
52 // 'identifier' : class 'type' needs to have dll-interface to be used by
53 // clients of class 'type2'
54 #pragma warning ( disable : 4251 )
55 // non dll-interface class 'type' used as base for dll-interface class 'type2'
56 #pragma warning ( disable : 4275 )
57 // 'identifier' : identifier was truncated to 'number' characters in the
58 // debug information
59 #pragma warning ( disable : 4786 )
60 //'identifier' : decorated name length exceeded, name was truncated
61 #pragma warning ( disable : 4503 )
62 // C++ exception specification ignored except to indicate a
63 // function is not __declspec(nothrow)
64 //#pragma warning ( disable : 4290 )
65 // signed/unsigned mismatch
66 #pragma warning ( disable : 4018 )
67 // return type for 'identifier' is '' (ie; not a UDT or reference to UDT. Will
68 // produce errors if applied using infix notation
69 //#pragma warning ( disable : 4284 )
70 // 'type' : forcing value to bool 'true' or 'false' (performance warning)
71 // //#pragma warning ( disable : 4800 )
72 #endif //_MSC_VER
73 
74 //-----------------------------------------------------------------------------
75 #endif //GDCMWIN32_H

Generated on Wed Jun 13 2012 20:40:37 for GDCM by doxygen 1.8.1
SourceForge.net Logo