diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-22 21:54:07 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-22 21:54:07 (GMT) |
commit | 8a71bdcfde83cc9069a28dc2c77d44c391ced355 (patch) | |
tree | 5fc544a518d81fa5b2d200b691ba767867e62ea6 /test/h5test.c | |
parent | bc4828f90a5a5c1fabe322af5a538aa31a104f84 (diff) | |
download | hdf5-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.c | 9 |
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); |