]> Creatis software - gdcm.git/commitdiff
Allow Borland compilng
authorjpr <jpr>
Mon, 29 Oct 2007 17:13:23 +0000 (17:13 +0000)
committerjpr <jpr>
Mon, 29 Oct 2007 17:13:23 +0000 (17:13 +0000)
(Thx to Dr Gianni Lazzaretto for providing fix)

Example/Dense2007ToDicom.cxx
Example/DenseMultiFramesToDicom.cxx
Testing/TestInline.cxx

index 6cc49ff66e95fcae5e1d09b76941f8879972424d..e8c30c4dd40bb88ba7886d1700137362a2c51ef9 100755 (executable)
@@ -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
 #include <iostream>
 //#include <values.h>
 
+#if defined(__BORLANDC__)
+#include <ctype.h>
+#endif
+
 #include "gdcmFile.h"
 #include "gdcmFileHelper.h"
 #include "gdcmDebug.h"
index 520a3975a283b054206514f011c1ffb15698b909..18109cac808234b39b190eba5f272bdca531e48b 100755 (executable)
@@ -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
 #include <iostream>
 //#include <values.h>
 
+#if defined(__BORLANDC__)
+#include <ctype.h>
+#endif
+
 #include "gdcmFile.h"
 #include "gdcmFileHelper.h"
 #include "gdcmDebug.h"
index e7fcfeeb1513868edbcda3875a79fdb158544bbd..9e8673c5cf4abba510ac25501c52cae7cf303972 100755 (executable)
@@ -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
 
 #include "gdcmUtil.h"
 
-#ifdef _MSC_VER
+#if defined(__BORLANDC__)
+#include <time.h>
+#include <stdio.h>
+#include <stdlib.h>
+#define GET_TIME(a) a=clock()
+#define HOW_LONG(b,a)                             \
+   std::cout  << (double) (b-a)  << std::endl 
+#elif def _MSC_VER
 #include <time.h>
 #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;