summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 8d319bb..5a5557d 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -57,7 +57,10 @@
/* Does the compiler support the __attribute__(()) syntax? */
#ifndef HAVE_ATTRIBUTE
-# define __attribute__(X) /*void */
+# define __attribute__(X) /*void*/
+# define __unused__ /*void*/
+#else
+# define __unused__ __attribute__((unused))
#endif
/* Does the compiler expand __FUNCTION__? */
@@ -95,6 +98,12 @@
# define MAX3(a,b,c) MAX(MAX(a,b),c)
#endif
+/* maximum value of various types */
+#define MAX_SIZET ((hsize_t)(size_t)(ssize_t)(-1))
+#define MAX_SSIZET ((hsize_t)(ssize_t)((size_t)1<<(8*sizeof(ssize_t)-1)))
+#define MAX_HSIZET ((hsize_t)(hssize_t)(-1))
+#define MAX_HSSIZET ((hsize_t)1<<(8*sizeof(hssize_t)-1))
+
/*
* HDF Boolean type.
*/