#include <sys/types.h>
#include <errno.h>
-#include <unistd.h>
+
+#ifdef _MSC_VER
+ #include <direct.h>
+#else
+ #include <unistd.h>
+#endif
//-----------------------------------------------------------------------------
// For full DICOMDIR description, see:
if(strlen(Name)==1 && Name[0]=='.') { // user passed '.' as Name
// we get current directory name
char*dummy=(char*) malloc(1000); // TODO : check with Windoze // JPR
+#ifdef _MSC_VER
+ _getcwd(dummy,(size_t)1000);
+#else
getcwd(dummy,(size_t)1000);
+#endif
SetFileName(dummy); // will be converted into a string
free(dummy); // no longer needed
}
void gdcmDicomDir::CheckBoundaries()
{
-
-cout <<"entree ds CheckBoundaries " <<endl;
ListDicomDirPatient::iterator itPatient;
ListDicomDirStudy::iterator itStudy;
ListDicomDirSerie::iterator itSerie;