diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-13 13:15:49 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-01-13 13:15:49 (GMT) |
commit | 8e391ad35a1ede1ac046f05710297aa40986642b (patch) | |
tree | 247faeeacb9925beb90b6b8c10f0d875f93ed155 /src/H5private.h | |
parent | c3a1173026916e25a5a44f1d4255b889ccbaeb2b (diff) | |
download | hdf5-8e391ad35a1ede1ac046f05710297aa40986642b.zip hdf5-8e391ad35a1ede1ac046f05710297aa40986642b.tar.gz hdf5-8e391ad35a1ede1ac046f05710297aa40986642b.tar.bz2 |
[svn-r6269] Purpose:
Code cleanup
Description:
Various code cleanups to allow the development branch to be compiled with
a C++ compiler (i.e. CC=g++ )
Platforms tested:
Tested h5committest {arabica (fortran), eirene (fortran, C++)
modi4 (parallel, fortran)}
FreeBSD 4.7 (sleipnir) C++
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index f479d4b..836e929 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -186,12 +186,17 @@ * suppresses warnings about unused function arguments. It's no big deal if * we don't. */ +#ifdef __cplusplus +# define __attribute__(X) /*void*/ +# define UNUSED /*void*/ +#else /* __cplusplus */ #ifdef H5_HAVE_ATTRIBUTE # define UNUSED __attribute__((unused)) #else # define __attribute__(X) /*void*/ # define UNUSED /*void*/ #endif +#endif /* __cplusplus */ /* * Does the compiler expand __FUNCTION__ to be the name of the function |