diff options
author | James Laird <jlaird@hdfgroup.org> | 2007-02-07 14:22:34 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2007-02-07 14:22:34 (GMT) |
commit | 4c62c0aa8af0f0501d268c7f2036592d7f702096 (patch) | |
tree | 529c6a56fd9dd44db4eefd59eb4bd78ae8ca57b8 /src/H5public.h | |
parent | 0261510037685936a42825b8899f942ac8bc58f1 (diff) | |
download | hdf5-4c62c0aa8af0f0501d268c7f2036592d7f702096.zip hdf5-4c62c0aa8af0f0501d268c7f2036592d7f702096.tar.gz hdf5-4c62c0aa8af0f0501d268c7f2036592d7f702096.tar.bz2 |
[svn-r13252] Moved definition of uint32_t from H5private.h to H5public.h, since it's now
used in H5Opublic.h.
This should fix build errors on Windows.
Tested on kagiso; will test on Windows immediately after checkin.
Diffstat (limited to 'src/H5public.h')
-rw-r--r-- | src/H5public.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/H5public.h b/src/H5public.h index 3101123..1910efe 100644 --- a/src/H5public.h +++ b/src/H5public.h @@ -207,6 +207,26 @@ typedef ssize_t hssize_t; #endif #define HADDR_MAX (HADDR_UNDEF-1) +/* uint32_t type is used for creation order field for messages. It may be + * defined in Posix.1g, otherwise it is defined here. + */ +#if H5_SIZEOF_UINT32_T>=4 +#elif H5_SIZEOF_SHORT>=4 + typedef short uint32_t; +# undef H5_SIZEOF_UINT32_T +# define H5_SIZEOF_UINT32_T H5_SIZEOF_SHORT +#elif H5_SIZEOF_INT>=4 + typedef unsigned int uint32_t; +# undef H5_SIZEOF_UINT32_T +# define H5_SIZEOF_UINT32_T H5_SIZEOF_INT +#elif H5_SIZEOF_LONG>=4 + typedef unsigned long uint32_t; +# undef H5_SIZEOF_UINT32_T +# define H5_SIZEOF_UINT32_T H5_SIZEOF_LONG +#else +# error "nothing appropriate for uint32_t" +#endif + /* int64_t type is used for creation order field for links. It may be * defined in Posix.1g, otherwise it is defined here. */ |