diff options
Diffstat (limited to 'windows')
-rwxr-xr-x | windows/src/H5pubconf.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/windows/src/H5pubconf.h b/windows/src/H5pubconf.h index bbef4a3..a702523 100755 --- a/windows/src/H5pubconf.h +++ b/windows/src/H5pubconf.h @@ -152,6 +152,17 @@ in the file file_io.win32.c and including it on the projects /* Check exception handling functions during data conversions */ #define H5_WANT_DCONV_EXCEPTION 1 +#if _MSC_VER >=1400 +/* visual studio 2005 doesn't support size of setvbuf to be less thn 1,This is a hacking, we would like to wait +visual studio 2005 to fix this problem. +*/ + +#define HDsetvbuf(F,S,M,Z) (((Z)>1)?setvbuf(F,S,M,Z):setvbuf(F,S,M,2)) + +#else +#define HDsetvbuf(F,S,M,Z) setvbuf(F,S,M,Z) +#endif + /* uncomment the following line if we want parallel HDF5 support */ /* #define H5_HAVE_PARALLEL */ |