summaryrefslogtreecommitdiffstats
path: root/src/H5config.h.in
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-01-13 05:38:40 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-01-13 05:38:40 (GMT)
commit52e401106794acc8ca9f654e8c9d22159f4e9bab (patch)
treec186de5724d9b25c9f95b0de440d3806862baf00 /src/H5config.h.in
parentfc59a903d181253c43444ae1d1dd5de4692f8dc0 (diff)
downloadhdf5-52e401106794acc8ca9f654e8c9d22159f4e9bab.zip
hdf5-52e401106794acc8ca9f654e8c9d22159f4e9bab.tar.gz
hdf5-52e401106794acc8ca9f654e8c9d22159f4e9bab.tar.bz2
[svn-r14403] Description:
Add work-around to allow reading files that were produced with a buggy earlier version of the library, which could create objects with the wrong object header message count. There is now a configure flag "--enable-strict-format-checks" which triggers a failure on reading a file with this sort of corruption (when enabled) and allows the object to be read (when disabled). The default value for the "strict-format-checks" flag is yes when the "debug" flag is enabled and no when the "debug" flag is disabled. Note that if strict format checks are disabled (allowing objects with this particular kind of corruption to be read) and the file is opened with write access, the library will re-write the object header for the corrupt object with the correct # of object header messages. This closes bugzilla bug #1010. Tested on: Linux/32 2.6 (kagiso) FreeBSD/64 6.2 (liberty)
Diffstat (limited to 'src/H5config.h.in')
-rw-r--r--src/H5config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5config.h.in b/src/H5config.h.in
index 56794cd..85456f5 100644
--- a/src/H5config.h.in
+++ b/src/H5config.h.in
@@ -505,6 +505,9 @@
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
+/* Define if strict file format checks are enabled */
+#undef STRICT_FORMAT_CHECKS
+
/* Define if your system supports pthread_attr_setscope(&attribute,
PTHREAD_SCOPE_SYSTEM) call. */
#undef SYSTEM_SCOPE_THREADS