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