summaryrefslogtreecommitdiffstats
path: root/src/H5Fproto.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-08-01 22:48:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-08-01 22:48:01 (GMT)
commit5cc4d0dcde9fb0f5a941c90a1de9ab964d09a163 (patch)
treef726cf0393700434fd482040c13826c8e3518ffc /src/H5Fproto.h
parentf474322ca57d2bc5b5f99a7b92cf34d9ad319389 (diff)
downloadhdf5-5cc4d0dcde9fb0f5a941c90a1de9ab964d09a163.zip
hdf5-5cc4d0dcde9fb0f5a941c90a1de9ab964d09a163.tar.gz
hdf5-5cc4d0dcde9fb0f5a941c90a1de9ab964d09a163.tar.bz2
[svn-r11] Moved haddr_t from H5Fprivate.h to H5Fproto.h (so I can store the address of
the object header in the dataset structure). Also deleted the support for a "per file" error stack, since we've decided to go with a "per thread" model (currently).
Diffstat (limited to 'src/H5Fproto.h')
-rw-r--r--src/H5Fproto.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5Fproto.h b/src/H5Fproto.h
index 0600179..7236bdd 100644
--- a/src/H5Fproto.h
+++ b/src/H5Fproto.h
@@ -23,6 +23,16 @@
#define H5ACC_WRITE 0x0001 /* User in H5Fopen to open a file with write access */
#define H5ACC_OVERWRITE 0x0002 /* User in H5Fcreate truncate an existing file */
+/*
+ * If we're using POSIXUNBUFIO and lseek64() is available, then use
+ * 64-bit file offsets. Otherwise use whatever `off_t' is.
+ */
+#if (FILELIB==POSIXUNBUFIO) && defined(H5_HAVE_OFF64_T) && defined(H5_HAVE_LSEEK64)
+typedef off64_t haddr_t;
+#else
+typedef off_t haddr_t;
+#endif
+
#if defined c_plusplus || defined __cplusplus
extern "C"
{