From 778c6a053d892d3c9c164dc90bcb1b45b71d8236 Mon Sep 17 00:00:00 2001 From: Fang Guo Date: Tue, 16 Aug 2005 12:24:04 -0500 Subject: [PATCH] [svn-r11251] Purpose: Maintenance on windows Description: Add two macros for windows, susbstitue functions HDsnprintf and HDvsnprintf with _snprintf and _vsnprintf when using Visual C++ on windows Solution: Platforms tested: MSVC 6.0 on Windows XP heping Misc. update: --- src/H5private.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/H5private.h b/src/H5private.h index 6ccb14a873..899cf87de7 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -914,10 +914,20 @@ extern char *strdup(const char *s); #ifndef H5_HAVE_SNPRINTF + H5_DLL int HDsnprintf(char *buf, size_t size, const char *fmt, ...); +#ifdef WIN32 +#define HDsnprintf _snprintf /*varargs*/ #endif + +#endif + #ifndef H5_HAVE_VSNPRINTF H5_DLL int HDvsnprintf(char *buf, size_t size, const char *fmt, va_list ap); +#ifdef WIN32 +#define HDvsnprintf _vsnprintf /*varargs*/ +#endif + #endif /*