From 9ffeeef6818ad0eff08178f0e0808e4f97c0ef07 Mon Sep 17 00:00:00 2001 From: jpr Date: Mon, 29 Oct 2007 17:13:23 +0000 Subject: [PATCH] Allow Borland compilng (Thx to Dr Gianni Lazzaretto for providing fix) --- Example/Dense2007ToDicom.cxx | 8 ++++++-- Example/DenseMultiFramesToDicom.cxx | 8 ++++++-- Testing/TestInline.cxx | 17 +++++++++++++---- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/Example/Dense2007ToDicom.cxx b/Example/Dense2007ToDicom.cxx index 6cc49ff6..e8c30c4d 100755 --- a/Example/Dense2007ToDicom.cxx +++ b/Example/Dense2007ToDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: Dense2007ToDicom.cxx,v $ Language: C++ - Date: $Date: 2007/10/24 08:03:10 $ - Version: $Revision: 1.4 $ + Date: $Date: 2007/10/29 17:13:59 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,6 +20,10 @@ #include //#include +#if defined(__BORLANDC__) +#include +#endif + #include "gdcmFile.h" #include "gdcmFileHelper.h" #include "gdcmDebug.h" diff --git a/Example/DenseMultiFramesToDicom.cxx b/Example/DenseMultiFramesToDicom.cxx index 520a3975..18109cac 100755 --- a/Example/DenseMultiFramesToDicom.cxx +++ b/Example/DenseMultiFramesToDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: DenseMultiFramesToDicom.cxx,v $ Language: C++ - Date: $Date: 2007/09/20 11:15:54 $ - Version: $Revision: 1.9 $ + Date: $Date: 2007/10/29 17:13:59 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,6 +20,10 @@ #include //#include +#if defined(__BORLANDC__) +#include +#endif + #include "gdcmFile.h" #include "gdcmFileHelper.h" #include "gdcmDebug.h" diff --git a/Testing/TestInline.cxx b/Testing/TestInline.cxx index e7fcfeeb..9e8673c5 100755 --- a/Testing/TestInline.cxx +++ b/Testing/TestInline.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestInline.cxx,v $ Language: C++ - Date: $Date: 2007/09/28 07:35:49 $ - Version: $Revision: 1.15 $ + Date: $Date: 2007/10/29 17:13:23 $ + Version: $Revision: 1.16 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -31,7 +31,14 @@ #include "gdcmUtil.h" -#ifdef _MSC_VER +#if defined(__BORLANDC__) +#include +#include +#include +#define GET_TIME(a) a=clock() +#define HOW_LONG(b,a) \ + std::cout << (double) (b-a) << std::endl +#elif def _MSC_VER #include #define GET_TIME(a) a=clock() #define HOW_LONG(b,a) \ @@ -182,7 +189,9 @@ double passDirectDouble(double a, double b) int TestInline(int argc, char *argv[]) { -#ifdef _MSC_VER +#if defined(__BORLANDC__) + clock_t tms1, tms2; +#elif def _MSC_VER clock_t tms1, tms2; #else struct tms tms1, tms2; -- 2.45.1