From 9d597efc993d4ad8eb0bf0144fae8ebfbded5822 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 31 Mar 2001 22:22:48 -0500 Subject: [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) --- src/H5private.h | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v0.12