#ifndef _WIN32
#include <unistd.h> //for access, unlink
+#else
+#include <io.h> //for _access
#endif
// return true if the file exists
TagDocEntryHT & Ht = original->GetHeader()->GetEntry();
size_t dataSize = original->GetImageDataSize();
- void *imageData = original->GetImageData();
+ uint8_t* imageData = original->GetImageData();
//First of all copy the header field by field
if ( gdcmBinEntry* b = dynamic_cast<gdcmBinEntry*>(d) )
{
copy->GetHeader()->ReplaceOrCreateByNumber(
- b->GetVoidArea(),
+ b->GetBinArea(),
b->GetLength(),
b->GetGroup(),
b->GetElement(),