From 8e338a50298bbd928e919cd2dbd30e57e8b322ce Mon Sep 17 00:00:00 2001 From: Robb Matzke Date: Fri, 20 Aug 1999 12:05:24 -0500 Subject: [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). --- src/H5private.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v0.12