diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2008-09-18 20:53:30 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2008-09-18 20:53:30 (GMT) |
commit | c254b0bc27536c91c7bb0ffa4269aba76f00fbff (patch) | |
tree | 3eeb46e4d97355e23af266b38d2b4f94091f3803 /windows/src | |
parent | 67cf35a4631348cfcc1ef150b3b7365ca9a56e33 (diff) | |
download | hdf5-c254b0bc27536c91c7bb0ffa4269aba76f00fbff.zip hdf5-c254b0bc27536c91c7bb0ffa4269aba76f00fbff.tar.gz hdf5-c254b0bc27536c91c7bb0ffa4269aba76f00fbff.tar.bz2 |
[svn-r15656] Purpose: fix bug 1286
Description: Added configure test to see if pointer alignment restrictions are enforced (as in dereferencing an unaligned pointer causes an error). Added code in H5Tvlen.c to avoid dereferencing unaligned pointers, conditionally compiled based on the configure test. Added test case in dtypes.c which would previously cause such machines to fail.
Tested: kagiso, smirom, linew (h5committest); linew64
Diffstat (limited to 'windows/src')
-rwxr-xr-x | windows/src/H5pubconf.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/windows/src/H5pubconf.h b/windows/src/H5pubconf.h index 8b7330d..0633aea 100755 --- a/windows/src/H5pubconf.h +++ b/windows/src/H5pubconf.h @@ -456,6 +456,9 @@ /* Define if your system can handle special collective IO properly. */ #define H5_MPI_SPECIAL_COLLECTIVE_IO_WORKS 1 +/* Define if we can violate pointer alignment restrictions */ +#define H5_NO_ALIGNMENT_RESTRICTIONS 1 + /* Define if deprecated public API symbols are disabled */ /* #undef H5_NO_DEPRECATED_SYMBOLS */ |