From 6306766fb4f8012cdb5b74fd7d59e98b68c916f2 Mon Sep 17 00:00:00 2001 From: Dana Robinson Date: Mon, 17 Dec 2018 10:34:20 -0800 Subject: Added a helpful comment to the va_copy() Windows hack. --- src/H5win32defs.h | 4 ++++ 1 file changed, 4 insertions(+) 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 */ -- cgit v0.12