Added a helpful comment to the va_copy() Windows hack.

This commit is contained in:
Dana Robinson 2018-12-17 10:34:20 -08:00
parent 1b9326d37f
commit 6306766fb4

View File

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