diff options
author | Robb Matzke <matzke@llnl.gov> | 1999-08-20 17:05:24 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1999-08-20 17:05:24 (GMT) |
commit | 8e338a50298bbd928e919cd2dbd30e57e8b322ce (patch) | |
tree | 16be151158ead120f3fd2576fc8a700a68efbfa8 /src | |
parent | daf589e9eab06ad6d36c9c9ac746805b2b3fa335 (diff) | |
download | hdf5-8e338a50298bbd928e919cd2dbd30e57e8b322ce.zip hdf5-8e338a50298bbd928e919cd2dbd30e57e8b322ce.tar.gz hdf5-8e338a50298bbd928e919cd2dbd30e57e8b322ce.tar.bz2 |
[svn-r1583] ./src/H5private.h [1.2, 1.3]
The prototype for strdup() is protected in case strdup is also
a macro. This should fix a bug on Linux RedHat 6.0 (untested).
Diffstat (limited to 'src')
-rw-r--r-- | src/H5private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index 253fbad..b63476d 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -698,9 +698,12 @@ __DLL__ int64_t HDstrtoll (const char *s, const char **rest, int base); #define HDwrite(F,M,Z) write(F,M,Z) /* - * And now for a couple non-Posix functions... + * And now for a couple non-Posix functions... Watch out for systems that + * define these in terms of macros. */ +#ifndef strdup char *strdup(const char *s); +#endif #define HDstrdup(S) strdup(S) #ifndef HAVE_SNPRINTF |