summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:22:48 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-04-01 03:22:48 (GMT)
commit9d597efc993d4ad8eb0bf0144fae8ebfbded5822 (patch)
tree54a930aafe6b09e6ef9b387f76da0bc9cd729811 /src/H5private.h
parent1e38134185b2c049c62329740cf5a037c953f1a9 (diff)
downloadhdf5-9d597efc993d4ad8eb0bf0144fae8ebfbded5822.zip
hdf5-9d597efc993d4ad8eb0bf0144fae8ebfbded5822.tar.gz
hdf5-9d597efc993d4ad8eb0bf0144fae8ebfbded5822.tar.bz2
[svn-r3743] Purpose:
Code cleanup Description: Defined snprintf macro for non-UNIX platform which needed tweak. Solution: Added extra ifdef around snprintf macro to accomodate platform. Platforms tested: FreeBSD 4.3 (hawkwind)
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index f4db86b..dadb87e 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -662,7 +662,11 @@ __DLL__ int HDfprintf (FILE *stream, const char *fmt, ...);
#define HDsinh(X) sinh(X)
#define HDsleep(N) sleep(N)
#ifdef H5_HAVE_SNPRINTF
+#ifdef __WATCOMC__
+# define HDsnprintf _snprintf /*varargs*/
+#else /* __WATCOMC__ */
# define HDsnprintf snprintf /*varargs*/
+#endif /* __WATCOMC__ */
#endif
/* sprintf() variable arguments */
#define HDsqrt(X) sqrt(X)