summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-06-22 21:54:07 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-06-22 21:54:07 (GMT)
commit8a71bdcfde83cc9069a28dc2c77d44c391ced355 (patch)
tree5fc544a518d81fa5b2d200b691ba767867e62ea6 /test/h5test.c
parentbc4828f90a5a5c1fabe322af5a538aa31a104f84 (diff)
downloadhdf5-8a71bdcfde83cc9069a28dc2c77d44c391ced355.zip
hdf5-8a71bdcfde83cc9069a28dc2c77d44c391ced355.tar.gz
hdf5-8a71bdcfde83cc9069a28dc2c77d44c391ced355.tar.bz2
[svn-r4069] Purpose:
Code cleanup... Description: Took out Windows ifdef and switched back to just using HDmkdir
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 5317e02..0571493 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -402,14 +402,11 @@ h5_fixname(const char *base_name, hid_t fapl, char *fullname, size_t size)
if (HDstat(fullname, &buf) < 0)
/* The directory doesn't exist just yet */
-#ifdef WIN32
- if (_mkdir(fullname)<0){
-#else
- if (HDmkdir(fullname, (mode_t)0755) < 0 && errno != EEXIST){
-#endif
+ if (HDmkdir(fullname, (mode_t)0755) < 0 && errno != EEXIST) {
/* We couldn't make the "/tmp/${USER,LOGIN}" subdirectory.
* Default to PREFIX's original prefix value. */
- HDstrcpy(fullname, prefix);}
+ HDstrcpy(fullname, prefix);
+ }
HDstrcat(fullname, "/");
HDstrcat(fullname, base_name);