From 135198d9dd1e6513d2735da75b5494b5f432f7cf Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Wed, 3 Nov 1999 15:17:45 -0500 Subject: [svn-r1815] added a definition for the S_ISDIR macro and a typedef for mode_t --- tools/h5toh4.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 #include + +#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); - } /***************************************************************************** -- cgit v0.12