diff options
author | Fang Guo <fangguo@ncsa.uiuc.edu> | 2005-08-16 17:24:04 (GMT) |
---|---|---|
committer | Fang Guo <fangguo@ncsa.uiuc.edu> | 2005-08-16 17:24:04 (GMT) |
commit | 778c6a053d892d3c9c164dc90bcb1b45b71d8236 (patch) | |
tree | 2b24d4364c217b806517c3a1aba7e7f30e180036 /src | |
parent | 3bf0e04aa3d7022973dc2813e830dd57ce80ec1d (diff) | |
download | hdf5-778c6a053d892d3c9c164dc90bcb1b45b71d8236.zip hdf5-778c6a053d892d3c9c164dc90bcb1b45b71d8236.tar.gz hdf5-778c6a053d892d3c9c164dc90bcb1b45b71d8236.tar.bz2 |
[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:
Diffstat (limited to 'src')
-rw-r--r-- | src/H5private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index 6ccb14a..899cf87 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 /* |