summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2002-01-09 19:29:39 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2002-01-09 19:29:39 (GMT)
commit221ed28a108baf7fc948ae38f477c074e3cea44d (patch)
treeabe07a2026426ae07a23df693788ed058669e638 /test
parent68f5361a73029324216cadc0e5f880d57c18788d (diff)
downloadhdf5-221ed28a108baf7fc948ae38f477c074e3cea44d.zip
hdf5-221ed28a108baf7fc948ae38f477c074e3cea44d.tar.gz
hdf5-221ed28a108baf7fc948ae38f477c074e3cea44d.tar.bz2
[svn-r4808]
Purpose: Cleanup warning Description: The use of mkdir in h5test.c caused this warning on windows: ...h5test.c(396) : warning C4013: 'mkdir' undefined; assuming extern returning int Solution: Replaced mkdir to HDmkdir, that Kent just added. This change requires the header file <direct.h> to be added to h5test.c Platforms tested: SunOS 5.7 (arabica) Linux 6.2 (eirene) Windows 2000
Diffstat (limited to 'test')
-rw-r--r--test/h5test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 25b1ec1..6b43180 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -15,6 +15,7 @@
#ifdef WIN32
#include <process.h>
+#include <direct.h>
#endif /* WIN32 */
/*
@@ -393,7 +394,7 @@ h5_fixname(const char *base_name, hid_t fapl, char *fullname, size_t size)
if (stat(fullname, &buf) < 0)
/* The directory doesn't exist just yet */
- if (mkdir(fullname, 0755) < 0 && errno != EEXIST)
+ if (HDmkdir(fullname, 0755) < 0 && errno != EEXIST)
/* We couldn't make the "/tmp/${USER,LOGIN}" subdirectory.
* Default to PREFIX's original prefix value. */
strcpy(fullname, prefix);