summaryrefslogtreecommitdiffstats
path: root/src/H5Fpkg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Fpkg.h')
-rw-r--r--src/H5Fpkg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5Fpkg.h b/src/H5Fpkg.h
index 22cae65..0bff2a8 100644
--- a/src/H5Fpkg.h
+++ b/src/H5Fpkg.h
@@ -61,6 +61,12 @@
#else
# define H5F_OVERFLOW_SIZET2OFFT(X) 0
#endif
+#if (H5_SIZEOF_HSIZE_T >= SIZEOF_OFF_T)
+# define H5F_OVERFLOW_HSIZET2OFFT(X) \
+ ((hsize_t)(X)>=(hsize_t)((hsize_t)1<<(8*sizeof(off_t)-1)))
+#else
+# define H5F_OVERFLOW_SIZET2OFFT(X) 0
+#endif
/* The raw data chunk cache */
typedef struct H5F_rdcc_t {