summaryrefslogtreecommitdiffstats
path: root/tools/src/misc/h5repart.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-07-17 18:24:01 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-07-17 18:24:01 (GMT)
commitee7816bbfb3f22d42d5db7d779efe54ae29528cb (patch)
treea7d3b56925c23d8984b2951f0c3a584be84965d0 /tools/src/misc/h5repart.c
parent26390d02df919476ff3d293293dacbcaba9a4c24 (diff)
downloadhdf5-ee7816bbfb3f22d42d5db7d779efe54ae29528cb.zip
hdf5-ee7816bbfb3f22d42d5db7d779efe54ae29528cb.tar.gz
hdf5-ee7816bbfb3f22d42d5db7d779efe54ae29528cb.tar.bz2
Stripped C standard library headers (and a couple of macros)
from the tools code. This is all handled in H5private.h, which should be included in all tools source files.
Diffstat (limited to 'tools/src/misc/h5repart.c')
-rw-r--r--tools/src/misc/h5repart.c34
1 files changed, 2 insertions, 32 deletions
diff --git a/tools/src/misc/h5repart.c b/tools/src/misc/h5repart.c
index 4432621..cdc554f 100644
--- a/tools/src/misc/h5repart.c
+++ b/tools/src/misc/h5repart.c
@@ -25,39 +25,9 @@
/* See H5private.h for how to include system headers */
#include "hdf5.h"
#include "H5private.h"
-#ifdef H5_STDC_HEADERS
-# include <ctype.h>
-# include <errno.h>
-# include <fcntl.h>
-# include <stdio.h>
-# include <stdlib.h>
-# include <string.h>
-#endif
-
-#ifdef H5_HAVE_UNISTD_H
-# include <sys/types.h>
-# include <unistd.h>
-#endif
-
-#ifdef H5_HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-
-#ifndef FALSE
-# define FALSE 0
-#endif
-#ifndef TRUE
-# define TRUE 1
-#endif
-# define NAMELEN 4096
-#define GB *1024*1024*1024
-#ifndef MIN
-# define MIN(X,Y) ((X)<(Y)?(X):(Y))
-#endif
-#ifndef MIN3
-# define MIN3(X,Y,Z) MIN(MIN(X,Y),Z)
-#endif
+#define NAMELEN 4096
+#define GB *1024*1024*1024
/*Make these 2 private properties(defined in H5Fprivate.h) available to h5repart.
*The first one updates the member file size in the superblock. The second one