diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-11-24 15:53:55 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-11-24 15:53:55 (GMT) |
commit | 0dfd13d13b2587cbdc3388a205159c25eb83588f (patch) | |
tree | 9a5b5fea712a6c8a12712762784dc848c548d6e3 /src/H5private.h | |
parent | 9db8ce23f6d3014ff6b2901580faa37bdecae4fa (diff) | |
download | hdf5-0dfd13d13b2587cbdc3388a205159c25eb83588f.zip hdf5-0dfd13d13b2587cbdc3388a205159c25eb83588f.tar.gz hdf5-0dfd13d13b2587cbdc3388a205159c25eb83588f.tar.bz2 |
[svn-r946] Changes since 19981121
----------------------
./src/H5Tconv.c
With my poor eyesight I missed the definitions of SCHAR_MIN
and SCHAR_MAX in <limits.h> and used CHAR_MIN and CHAR_MAX
incorrectly. I changed all occurrences of the latter to the
former and the new hardware integer type conversions now work
on Irix.
./configure.in
./configure [REGENERATED]
./src/H5config.h.in [REGENERATED]
./src/H5private.h
./src/H5.c
./test/h5test.c
Added a wrapper for HDsnprintf() that just calls sprintf() if
snprintf() isn't available.
./MANIFEST
Added Paul's new h5toh4 files.
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index abd104a..13fdcb2 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -595,6 +595,9 @@ int HDfprintf (FILE *stream, const char *fmt, ...); #define HDsin(X) sin(X) #define HDsinh(X) sinh(X) #define HDsleep(N) sleep(N) +#ifdef HAVE_SNPRINTF +# define HDsnprintf snprintf /*varargs*/ +#endif /* sprintf() variable arguments */ #define HDsqrt(X) sqrt(X) #define HDsrand(N) srand(N) @@ -662,9 +665,13 @@ int64_t HDstrtoll (const char *s, const char **rest, int base); /* * And now for a couple non-Posix functions... */ -extern char *strdup(const char *s); +char *strdup(const char *s); #define HDstrdup(S) strdup(S) +#ifndef HAVE_SNPRINTF +int HDsnprintf(char *buf, size_t size, const char *fmt, ...); +#endif + /* * These macros check whether debugging has been requested for a certain * package at run-time. Code for debugging is conditionally compiled by |