summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-06-05 14:53:21 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-06-05 14:53:21 (GMT)
commit2e07d8035fb61296270ce8237b17a5ca79d9eeb4 (patch)
treedb915f2f8158f0ae84ca544e17fcf1b7ff046337
parent6924dc64535c645372e9bdeaadf3a7b86e44901f (diff)
downloadhdf5-2e07d8035fb61296270ce8237b17a5ca79d9eeb4.zip
hdf5-2e07d8035fb61296270ce8237b17a5ca79d9eeb4.tar.gz
hdf5-2e07d8035fb61296270ce8237b17a5ca79d9eeb4.tar.bz2
[svn-r6970] Purpose:
Twist code Description: Try to find a happy definition of HSSIZET_MAX, HSSIZET_MIN and HSIZET_MAX for all platforms. Platforms tested: FreeBSD 4.8 (sleipnir) h5committested
-rw-r--r--src/H5private.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 8288efb..33a7d42 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -431,20 +431,13 @@
# define SSIZET_MAX ((hsize_t)(ssize_t)((size_t)1<<(8*sizeof(ssize_t)-1)))
#endif
#ifdef H5_HAVE_LARGE_HSIZET
-# if H5_SIZEOF___INT64>0
-#define HSIZET_MAX _UI64_MAX /*Win32*/
-#define HSSIZET_MAX I64_MAX
-# elif H5_SIZEOF_LONG_LONG>0
#define HSIZET_MAX ULLONG_MAX
#define HSSIZET_MAX LLONG_MAX
-# else /* Can't find matching type for hsize_t */
-# error "nothing appropriate for hsize_t"
-# endif /* H5_HAVE_LARGE_HSIZET */
#else /* H5_HAVE_LARGE_HSIZET */
#define HSIZET_MAX SIZET_MAX
#define HSSIZET_MAX SSIZET_MAX
#endif /* H5_HAVE_LARGE_HSIZET */
-#define HSSIZET_MIN ((-HSSIZET_MAX)-1)
+#define HSSIZET_MIN (~(HSSIZET_MAX))
/*
* Some compilers have problems declaring auto variables that point