summaryrefslogtreecommitdiffstats
path: root/tools/h5import.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>2000-05-03 15:48:20 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>2000-05-03 15:48:20 (GMT)
commitae5c998516c2235ef1334c76718109506dcc480c (patch)
tree19b8caf1371f1a3e53e0809caf9b24cb3cd2d731 /tools/h5import.c
parent043b7c4ec58fc06cc42cb62aec7741deb807c996 (diff)
downloadhdf5-ae5c998516c2235ef1334c76718109506dcc480c.zip
hdf5-ae5c998516c2235ef1334c76718109506dcc480c.tar.gz
hdf5-ae5c998516c2235ef1334c76718109506dcc480c.tar.bz2
[svn-r2211] took the development branch code and moved it into the release. had to add some
conditional compile statements in the code to compile for the release. defined a VERSION12 and VERSION13 macro. all changes were surrounded by these statements
Diffstat (limited to 'tools/h5import.c')
-rw-r--r--tools/h5import.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/h5import.c b/tools/h5import.c
index 53fae0b..a54c98f 100644
--- a/tools/h5import.c
+++ b/tools/h5import.c
@@ -10,21 +10,36 @@
/* See H5private.h for how to include system headers */
#include <hdf5.h>
+#include <h5tools.c>
#ifdef H5_STDC_HEADERS
# include <fcntl.h>
# include <string.h>
# include <stdlib.h>
# include <stdio.h>
+#elif defined STDC_HEADERS
+# include <fcntl.h>
+# include <string.h>
+# include <stdlib.h>
+# include <stdio.h>
#endif
#ifdef H5_HAVE_UNISTD_H
# include <sys/types.h>
# include <unistd.h>
+#elif defined HAVE_UNISTD_H
+# include <sys/types.h>
+# include <unistd.h>
#endif
+#if defined VERSION12
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#elif defined VERSION13
#ifdef H5_HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
+#endif