summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h5
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