summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-01-12 20:00:01 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-01-12 20:00:01 (GMT)
commitcd8d9e24601a67366ae5647bd3fe750056d05f1a (patch)
tree357e0736c458e3771afe5e5e38bff627ef95edaf
parentd11eab4dc72948b820436e0457bf8db1293ed5a4 (diff)
downloadhdf5-cd8d9e24601a67366ae5647bd3fe750056d05f1a.zip
hdf5-cd8d9e24601a67366ae5647bd3fe750056d05f1a.tar.gz
hdf5-cd8d9e24601a67366ae5647bd3fe750056d05f1a.tar.bz2
[svn-r3283] Purpose:
Suppress warnings for release. Description: Always declare strdup as extern, figure out way to avoid warnings later. Platforms tested: Linux 2.2.16 (eirene)
-rw-r--r--src/H5private.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/H5private.h b/src/H5private.h
index e96cc0f..64deb79 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -727,12 +727,14 @@ __DLL__ int64_t HDstrtoll (const char *s, const char **rest, int base);
* And now for a couple non-Posix functions... Watch out for systems that
* define these in terms of macros.
*/
-/*
-if !defined strdup && !defined HAVE_STRDUP && !defined _strdup
-char *strdup(const char *s);
+#ifdef LATER
+#if !defined strdup && !defined HAVE_STRDUP && !defined _strdup
+extern char *strdup(const char *s);
#endif
+#else /* LATER */
+extern char *strdup(const char *s);
+#endif /* LATER */
#define HDstrdup(S) strdup(S)
-*/
#ifdef WIN32