Merge pull request #1389 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:strtok_windows_fix to develop

* commit 'a7618f432b671ad041ae63a83bf9b9bb08096dbe':
  Updated with extra sanity check and improved comment.
  Fixed an issue in the passthru Windows va_copy hack.
This commit is contained in:
Dana Robinson 2018-12-17 17:34:44 -06:00
commit d8656bdbb2

View File

@ -41,10 +41,12 @@
/* (Uncomment to enable) */
/* #define ENABLE_PASSTHRU_LOGGING */
/* Windows missing va_copy() hack (from H5win2_defs.h) */
#if (_MSC_VER < 1800)
/* Hack for missing va_copy() in old Visual Studio editions
* (from H5win2_defs.h - used on VS2012 and earlier)
*/
#if defined(_WIN32) && defined(_MSC_VER) && (_MSC_VER < 1800)
#define va_copy(D,S) ((D) = (S))
#endif /* MSC_VER < 1800 */
#endif
/************/
/* Typedefs */