summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2014-05-25 05:55:39 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2014-05-25 05:55:39 (GMT)
commit60f8a4100e2e0b221ab291a99167350299dbbe1b (patch)
tree4a98a09051a98e25d45c902d0ec92fe86f957970 /src
parenta8b48bc7f5355b951b30bc656f7c7c03b69c0329 (diff)
downloadhdf5-60f8a4100e2e0b221ab291a99167350299dbbe1b.zip
hdf5-60f8a4100e2e0b221ab291a99167350299dbbe1b.tar.gz
hdf5-60f8a4100e2e0b221ab291a99167350299dbbe1b.tar.bz2
[svn-r25215] Description:
Bring changes from Coverity branch back to trunk: r20914: Use HDstrncpy and HDstrncat! --gh 20915: Use HDstrncpy and HDstrncat! --gh Tested on: Mac OSX/64 10.9.3 (amazon) w/gcc 4.9.0, C++, FORTRAN & parallel (too minor to require h5committest)
Diffstat (limited to 'src')
-rw-r--r--src/H5config.h.in3
-rw-r--r--src/H5private.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/H5config.h.in b/src/H5config.h.in
index 76de6c6..261c2ca 100644
--- a/src/H5config.h.in
+++ b/src/H5config.h.in
@@ -402,6 +402,9 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
+/* Define to 1 if you have the `asprintf' function. */
+#undef HAVE_ASPRINTF
+
/* Define to 1 if you have the `vasprintf' function. */
#undef HAVE_VASPRINTF
diff --git a/src/H5private.h b/src/H5private.h
index 125e20c..f971504 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -542,6 +542,9 @@ typedef struct {
#ifndef HDasin
#define HDasin(X) asin(X)
#endif /* HDasin */
+#ifndef HDasprintf
+ #define HDasprintf asprintf /*varargs*/
+#endif /* HDasprintf */
#ifndef HDassert
#define HDassert(X) assert(X)
#endif /* HDassert */