summaryrefslogtreecommitdiffstats
path: root/src/H5public.h
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-08-25 15:33:16 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1999-08-25 15:33:16 (GMT)
commit581fe7cf75eb95f60e05a9f374be8eb038f6a343 (patch)
tree215dcbf512de83a737331a147c2468b602a6d35f /src/H5public.h
parentcd917cd14b866c8b45764646b3c828dd36af2d2e (diff)
downloadhdf5-581fe7cf75eb95f60e05a9f374be8eb038f6a343.zip
hdf5-581fe7cf75eb95f60e05a9f374be8eb038f6a343.tar.gz
hdf5-581fe7cf75eb95f60e05a9f374be8eb038f6a343.tar.bz2
[svn-r1594]
added a conditional for __INT64 in the part of the code where the file addresses are given types. so now if the sizeof__int64 is >=8 then haddr_t is typedefed to an unsigned __int64 and the HADDR_UNDEF = ((haddr_t)(__int64)(-1)). I used the unsigned long long as my example.
Diffstat (limited to 'src/H5public.h')
-rw-r--r--src/H5public.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5public.h b/src/H5public.h
index a63f6cc..d2ef7ec 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -113,6 +113,9 @@ typedef ssize_t hssize_t;
#elif SIZEOF_LONG_LONG>=8
typedef unsigned long long haddr_t;
# define HADDR_UNDEF ((haddr_t)(long long)(-1))
+# elif SIZEOF___INT64>=8
+ typedef unsigned __int64 haddr_t;
+# define HADDR_UNDEF ((haddr_t)(__int64)(-1))
#else
# error "nothing appropriate for haddr_t"
#endif