-#include <iostream>
+/*=========================================================================
+
+ Program: gdcm
+ Module: $RCSfile: BuildUpDicomDir.cxx,v $
+ Language: C++
+ Date: $Date: 2004/11/30 18:10:23 $
+ Version: $Revision: 1.9 $
+
+ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
+ l'Image). All rights reserved. See Doc/License.txt or
+ http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. See the above copyright notices for more information.
+
+=========================================================================*/
#include "gdcm.h"
#include "gdcmDocEntry.h"
#include "gdcmDicomDir.h"
#include "gdcmDebug.h"
#include <fstream>
+#include <iostream>
+#include <stdio.h>
#ifdef GDCM_NO_ANSI_STRING_STREAM
# include <strstream>
# define ostringstream ostrstream
#include <errno.h>
// for Directory pb
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__BORLANDC__)
#include <windows.h>
#include <direct.h>
+ #include <stdio.h>
#else
#include <dirent.h>
#include <unistd.h>