diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-04-08 02:42:53 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-04-08 02:42:53 (GMT) |
commit | a756f0e0c9bdabcef789d9f1731d4af6aad46a00 (patch) | |
tree | 53d74688686ee4fa59a11b902e5e007be2781cf5 /src/H5FDstream.c | |
parent | 321fa0f5a945de9d2646683191689e53d05cc134 (diff) | |
download | hdf5-a756f0e0c9bdabcef789d9f1731d4af6aad46a00.zip hdf5-a756f0e0c9bdabcef789d9f1731d4af6aad46a00.tar.gz hdf5-a756f0e0c9bdabcef789d9f1731d4af6aad46a00.tar.bz2 |
[svn-r3790] Purpose:
Improvment
Description:
H5config.h and H5pubconf.h are generated by configure. It does
not have the #ifndef _H5config_H ... #endif guard to prevent
duplicated definitions if it is included more than once.
It is messy to try make configure to put in those guards.
Solution:
HDF5 has set an internal rule that H5public.h includes H5pubconf.h
and H5private.h includes H5config.h. Source files should NOT include
H5config.h or H5pubconf.h directly but include it via H5public.h or
H5private.h respectively. The #ifndef ... #endif in the H5public.h
and H5private.h would prevent repeated definitions from repeated
include.
Adjusted H5FDstream.c and H5FDstream.h to follow this rule.
Platforms tested:
modi4, eirene.
Diffstat (limited to 'src/H5FDstream.c')
-rw-r--r-- | src/H5FDstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDstream.c b/src/H5FDstream.c index 79d9b5c..48a4edd 100644 --- a/src/H5FDstream.c +++ b/src/H5FDstream.c @@ -21,7 +21,7 @@ * */ -#include <H5pubconf.h> /* H5_HAVE_STREAM */ +#include <H5public.h> /* H5_HAVE_STREAM */ /* Only build this driver if it was configured with --with-Stream-VFD */ #ifdef H5_HAVE_STREAM |