diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2018-12-17 18:34:20 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2018-12-17 18:34:20 (GMT) |
commit | 6306766fb4f8012cdb5b74fd7d59e98b68c916f2 (patch) | |
tree | 96083da561cb6a02690e08ce63e6ebada633a3ed /src/H5win32defs.h | |
parent | 1b9326d37f5a932eb1646d970c08bf14cd188679 (diff) | |
download | hdf5-6306766fb4f8012cdb5b74fd7d59e98b68c916f2.zip hdf5-6306766fb4f8012cdb5b74fd7d59e98b68c916f2.tar.gz hdf5-6306766fb4f8012cdb5b74fd7d59e98b68c916f2.tar.bz2 |
Added a helpful comment to the va_copy() Windows hack.
Diffstat (limited to 'src/H5win32defs.h')
-rw-r--r-- | src/H5win32defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h index ad8f4e8..140afc3 100644 --- a/src/H5win32defs.h +++ b/src/H5win32defs.h @@ -67,6 +67,10 @@ typedef __int64 h5_stat_size_t; #define HDunlink(S) _unlink(S) #define HDwrite(F,M,Z) _write(F,M,Z) #if (_MSC_VER < 1800) +/* va_copy() does not exist on pre-2013 Visual Studio. Since va_lists are + * just pointers into the stack in those CRTs, the usual work-around + * is to just define the operation as a pointer copy. + */ #define HDva_copy(D,S) ((D) = (S)) #endif /* MSC_VER < 1800 */ |