Browse Source

Implement va_copy for VS 2012

va_copy is part of C++ 11, not supported by VS 2012
tags/gpsbabel_1_5_4
Robert Lipe 3 years ago
parent
commit
be33a699cd
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      defs.h

+ 9
- 0
defs.h View File

@@ -105,6 +105,15 @@
# define strdup _strdup
#endif

/* Workaround for lack of va_copy in Visual Studio 2012 and earlier */
#if __WIN32__
# if _MSC_VER
# if _MSC_VER < 1700
# define va_copy(dest, src) ((dest) = (src))
# endif
# endif
#endif

/* Turn off numeric conversion warning */
#if __WIN32__
# if _MSC_VER

Loading…
Cancel
Save