]> Creatis software - gdcm.git/blobdiff - Testing/TestCopyDicom.cxx
ENH: Fix a warning with gcc4: TestHash.cxx:20: warning: deprecated conversion from...
[gdcm.git] / Testing / TestCopyDicom.cxx
index 8bbedf69aea75e703041838331052a6ab270060c..62e1a727e9a1a68e0c51a0520786bcdf13132076 100644 (file)
@@ -9,6 +9,8 @@
 
 #ifndef _WIN32
 #include <unistd.h> //for access, unlink
+#else
+#include <io.h> //for _access on Win32
 #endif
 
 // return true if the file exists
@@ -87,7 +89,7 @@ int TestCopyDicom(int , char* [])
          if ( gdcmBinEntry* b = dynamic_cast<gdcmBinEntry*>(d) )
          {              
             copy->GetHeader()->ReplaceOrCreateByNumber( 
-                                 b->GetVoidArea(),
+                                 b->GetBinArea(),
                                  b->GetLength(),
                                  b->GetGroup(), 
                                  b->GetElement(),