[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:
This commit is contained in:
Fang Guo 2005-08-16 12:24:04 -05:00
parent 3bf0e04aa3
commit 778c6a053d

View File

@ -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
/*