summaryrefslogtreecommitdiffstats
path: root/tools/h5toh4.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-11-03 20:17:45 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-11-03 20:17:45 (GMT)
commit135198d9dd1e6513d2735da75b5494b5f432f7cf (patch)
tree2ca7f34f3fbd8aa22cb622fcde4e4217ba6a5505 /tools/h5toh4.c
parent4051fa31870cb61a757d5d3930f41b3bd2475657 (diff)
downloadhdf5-135198d9dd1e6513d2735da75b5494b5f432f7cf.zip
hdf5-135198d9dd1e6513d2735da75b5494b5f432f7cf.tar.gz
hdf5-135198d9dd1e6513d2735da75b5494b5f432f7cf.tar.bz2
[svn-r1815] added a definition for the S_ISDIR macro and a typedef for mode_t
Diffstat (limited to 'tools/h5toh4.c')
-rw-r--r--tools/h5toh4.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/h5toh4.c b/tools/h5toh4.c
index 8a41aea..98784f2 100644
--- a/tools/h5toh4.c
+++ b/tools/h5toh4.c
@@ -17,6 +17,14 @@
#include <fcntl.h>
#include <h5tools.h>
+
+#if WIN32
+typedef unsigned int mode_t;
+#endif
+
+#ifndef S_ISDIR
+#define S_ISDIR(mode) (((mode)&0xF000) == S_IFDIR)
+#endif
extern int PrintOptions_h5toh4(void);
extern char *BuildFilename(char *h5_filename, char *h4_extension);
extern int test_file(char *filename, int oflag, mode_t mode);
@@ -2297,7 +2305,6 @@ int test_dir(char *path)
}
return S_ISDIR(buf_ptr->st_mode);
-
}
/*****************************************************************************