summaryrefslogtreecommitdiffstats
path: root/windows
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2008-09-18 20:54:36 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2008-09-18 20:54:36 (GMT)
commit8436735388f192ecc19b76ac043117a3d883fa14 (patch)
tree135291f3dcf477f2aedce7a88f45cea2f9474e3a /windows
parent6ddb6ed83f9a662559b83bb672244818177ebe0d (diff)
downloadhdf5-8436735388f192ecc19b76ac043117a3d883fa14.zip
hdf5-8436735388f192ecc19b76ac043117a3d883fa14.tar.gz
hdf5-8436735388f192ecc19b76ac043117a3d883fa14.tar.bz2
[svn-r15657] 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 8f696c6..0bace50 100755
--- a/windows/src/H5pubconf.h
+++ b/windows/src/H5pubconf.h
@@ -453,6 +453,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 */