From: Romulo Pinho Date: Tue, 11 Oct 2011 08:09:44 +0000 (+0200) Subject: Compilation error related to GDCM-2 X-Git-Tag: v1.3.0~191 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=52b3a1eaf00a581dc231c2d8b452a2d8ba18e980;p=clitk.git Compilation error related to GDCM-2 --- diff --git a/common/clitkDicomRT_Contour.cxx b/common/clitkDicomRT_Contour.cxx index 9874563..ee55e44 100644 --- a/common/clitkDicomRT_Contour.cxx +++ b/common/clitkDicomRT_Contour.cxx @@ -53,6 +53,7 @@ void clitk::DicomRT_Contour::Print(std::ostream & os) const //-------------------------------------------------------------------- +#if GDCM_MAJOR_VERSION == 2 void clitk::DicomRT_Contour::UpdateDicomItem() { DD("DicomRT_Contour::UpdateDicomItem"); @@ -109,6 +110,7 @@ void clitk::DicomRT_Contour::UpdateDicomItem() DD(bb[0]); } +#endif //-------------------------------------------------------------------- diff --git a/common/clitkDicomRT_Contour.h b/common/clitkDicomRT_Contour.h index 91d75d6..78a5bfd 100644 --- a/common/clitkDicomRT_Contour.h +++ b/common/clitkDicomRT_Contour.h @@ -68,7 +68,11 @@ protected: ///Z location of the contour double mZ; +#if GDCM_MAJOR_VERSION == 2 gdcm::Item * mItem; +#else + gdcm::SQItem * mItem; +#endif private: DicomRT_Contour();