]> Creatis software - gdcm.git/commitdiff
Add #include for BCC.
authorjpr <jpr>
Fri, 27 Jan 2006 10:03:23 +0000 (10:03 +0000)
committerjpr <jpr>
Fri, 27 Jan 2006 10:03:23 +0000 (10:03 +0000)
Thx to Luca Picello for providing fix.

Example/Volume2Dicom.cxx
Example/WriteDicomAsJPEG.cxx

index e8b97936b89e424488bdd739138c3fc3755445c2..1f271ee19b8fa2137fa273e2a773e06fc855569d 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: Volume2Dicom.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/10/25 14:52:27 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2006/01/27 10:03:23 $
+  Version:   $Revision: 1.11 $
                                                                                  
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -18,7 +18,7 @@
 
 /**
  * This example was proposed by Jean-Michel Rouet
- * It was patch by Mathieu Malaterre to remove ITK reference and be more
+ * It was patched by Mathieu Malaterre to remove ITK reference and be more
  * independant from other toolkit
  * It's aim is to show people how to write their data volume into DICOM slices
  */
    #define stat _stat
 #endif
 
+#if defined(__BORLANDC__)
+ #include <mem.h> // for memset, memcpy
+#endif 
+
 //const unsigned int Dimension = 3;
 
 void gdcmwrite(const char *inputfile, std::string directory);
index 3b3acd576d2748d46416eaf0e2d1bb79685f06c1..97611a2a190ef42a40036b87d7e1deab14048e01 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: WriteDicomAsJPEG.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/11/22 20:31:37 $
-  Version:   $Revision: 1.9 $
+  Date:      $Date: 2006/01/27 10:03:23 $
+  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
@@ -31,6 +31,10 @@ extern "C" {
 #include "gdcmjpeg/8/jerror.h"
 }
 
+#if defined(__BORLANDC__)
+ #include <mem.h> // for memcpy
+#endif
+
 #include "gdcmJPEGFragment.h"
 #include <setjmp.h>
 #include <fstream>