mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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:
parent
3bf0e04aa3
commit
778c6a053d
@ -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
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user