diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-12 20:00:01 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-12 20:00:01 (GMT) |
commit | cd8d9e24601a67366ae5647bd3fe750056d05f1a (patch) | |
tree | 357e0736c458e3771afe5e5e38bff627ef95edaf /src | |
parent | d11eab4dc72948b820436e0457bf8db1293ed5a4 (diff) | |
download | hdf5-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)
Diffstat (limited to 'src')
-rw-r--r-- | src/H5private.h | 10 |
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 |