summaryrefslogtreecommitdiffstats
path: root/windows
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2008-09-18 20:53:30 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2008-09-18 20:53:30 (GMT)
commitc254b0bc27536c91c7bb0ffa4269aba76f00fbff (patch)
tree3eeb46e4d97355e23af266b38d2b4f94091f3803 /windows
parent67cf35a4631348cfcc1ef150b3b7365ca9a56e33 (diff)
downloadhdf5-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')
-rwxr-xr-xwindows/src/H5pubconf.h3
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 */