GDCM  2.2.6
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 // http://gcc.gnu.org/wiki/Visibility
23 #if defined(WIN32) && defined(GDCM_BUILD_SHARED_LIBS)
24  #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)
25  #define GDCM_EXPORT __declspec( dllexport )
26  #else
27  #define GDCM_EXPORT __declspec( dllimport )
28  #endif
29 #else
30  #if __GNUC__ >= 4
31  #define GDCM_EXPORT __attribute__ ((visibility ("default")))
32  #define GDCM_LOCAL __attribute__ ((visibility ("hidden")))
33  #else
34  #define GDCM_EXPORT
35  #endif
36 #endif
37 
38 // In VTK 4.2 vtkWrapPython does not like anything other than VTK_*EXPORT
39 // [ 86%] Generating vtkGDCMImageReaderPython.cxx
40 // syntax error
41 // *** SYNTAX ERROR found in parsing the header file /usr/local/src/gdcm2/tags/gdcm-2-0-11/Utilities/VTK/vtkGDCMImageReader.h before line 128***
42 // make[2]: *** [Utilities/VTK/vtkGDCMImageReaderPython.cxx] Error 1
43 // make[1]: *** [Utilities/VTK/CMakeFiles/vtkgdcmPythonD.dir/all] Error 2
44 // make: *** [all] Error 2
45 
46 #if defined(VTK_MAJOR_VERSION) && ( VTK_MAJOR_VERSION == 4 )
47 #undef VTK_EXPORT
48 #define VTK_EXPORT GDCM_EXPORT
49 #endif
50 
51 //-----------------------------------------------------------------------------
52 //This is needed when compiling in debug mode
53 #ifdef _MSC_VER
54 // to allow construct such as: std::numeric_limits<int>::max() we need the following:
55 // warning C4003: not enough actual parameters for macro 'max'
56 #define NOMINMAX
57 # pragma warning ( default : 4263 ) /* no override, call convention differs */
58 // 'identifier' : class 'type' needs to have dll-interface to be used by
59 // clients of class 'type2'
60 #pragma warning ( disable : 4251 )
61 // non dll-interface class 'type' used as base for dll-interface class 'type2'
62 #pragma warning ( disable : 4275 )
63 // 'identifier' : identifier was truncated to 'number' characters in the
64 // debug information
65 #pragma warning ( disable : 4786 )
66 //'identifier' : decorated name length exceeded, name was truncated
67 #pragma warning ( disable : 4503 )
68 // C++ exception specification ignored except to indicate a
69 // function is not __declspec(nothrow)
70 //#pragma warning ( disable : 4290 )
71 // signed/unsigned mismatch
72 #pragma warning ( disable : 4018 )
73 // return type for 'identifier' is '' (ie; not a UDT or reference to UDT. Will
74 // produce errors if applied using infix notation
75 //#pragma warning ( disable : 4284 )
76 // 'type' : forcing value to bool 'true' or 'false' (performance warning)
77 // //#pragma warning ( disable : 4800 )
78 #endif //_MSC_VER
79 
80 //-----------------------------------------------------------------------------
81 #endif //GDCMWIN32_H

Generated on Sat Dec 21 2013 05:56:18 for GDCM by doxygen 1.8.5
SourceForge.net Logo