summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-03-09 23:15:37 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-03-09 23:15:37 (GMT)
commit3a111372b17c31b452d89594b72a559a98c0ff07 (patch)
tree179478c0c96d4573ebd7eb8c74161e5e5ce7780d
parentcee43a0f303bb7c561604dc5fd0010315fd1e635 (diff)
downloadhdf5-3a111372b17c31b452d89594b72a559a98c0ff07.zip
hdf5-3a111372b17c31b452d89594b72a559a98c0ff07.tar.gz
hdf5-3a111372b17c31b452d89594b72a559a98c0ff07.tar.bz2
[svn-r1130] Make HDsnprintf to be compiled only if snprintf is not available
in the local system. Tested in O2K.
-rw-r--r--src/H5.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5.c b/src/H5.c
index 84b8e05..5df4d4a 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -448,6 +448,7 @@ H5close (void)
}
+#ifndef HAVE_SNPRINTF
/*-------------------------------------------------------------------------
* Function: HDsnprintf
*
@@ -487,6 +488,7 @@ HDsnprintf(char *buf, size_t __unused__ size, const char *fmt, ...)
va_end(ap);
return n;
}
+#endif /* HAVE_SNPRINTF */
/*-------------------------------------------------------------------------