diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-11-11 16:33:33 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-11-11 16:33:33 (GMT) |
commit | bb36032d5a67da619efb8d6139f4f6bae1fe4706 (patch) | |
tree | 819eb2f9d631d5e3accf9042d4fce60861f25c5c /tools/h5import.c | |
parent | c82e6a41229a20086e0d6903da0f831b60ff62d9 (diff) | |
download | hdf5-bb36032d5a67da619efb8d6139f4f6bae1fe4706.zip hdf5-bb36032d5a67da619efb8d6139f4f6bae1fe4706.tar.gz hdf5-bb36032d5a67da619efb8d6139f4f6bae1fe4706.tar.bz2 |
[svn-r900] Changes since 19981106
----------------------
./tools/h5ls.c
The chunk dimensions and total size is printed for chunked datasets.
./examples/h5_attribute.c
./examples/h5_select.c
./test/chunk.c
./test/iopipe.c
./test/ragged.c
./src/H5.c
./src/H5private.h
./src/H5public.h
Removed extra carriage-return characters inserted by a broken
OS :-)
Reformatted strange-looking comments.
Removed C++ comments.
Wrapped long lines.
./examples/h5_attribute.c
./examples/h5_select.c
Removed inclusion of private headers.
Changed `uint32' (originally `uint') to `unsigned' because
`int32' is not exported as part of the API.
./src/H5Fmpio.h
Removed includes for <sys/types.h> and <sys/stat.h> since
they're already included by H5private.h. All system include
files should be included in H5private.h so we can wrap them
with appropriate feature macros.
./tools/h5import.c
./tools/h5repart.c
Included header files like all other programs in that
directory.
./tools/h5tools.c
Better type checking for `hsize_t' and `hssize_t'.
Diffstat (limited to 'tools/h5import.c')
-rw-r--r-- | tools/h5import.c | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/tools/h5import.c b/tools/h5import.c index a5c030a..5d36e78 100644 --- a/tools/h5import.c +++ b/tools/h5import.c @@ -7,15 +7,27 @@ * * Purpose: Create an hdf5 file with a 1d dataset of uint8. */ -#include <fcntl.h> -#include <hdf5.h> -#include <string.h> -#include <stdlib.h> -#include <stdio.h> -#include <sys/stat.h> + +/* See H5private.h for how to include system headers */ +#include <H5config.h> +#ifdef STDC_HEADERS +# include <fcntl.h> +# include <string.h> +# include <stdlib.h> +# include <stdio.h> +#endif + #ifdef HAVE_UNISTD_H -#include <unistd.h> +# include <sys/types.h> +# include <unistd.h> #endif + +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> +#endif + +#include <hdf5.h> + /*------------------------------------------------------------------------- * Function: usage |