diff options
Diffstat (limited to 'src/google/protobuf/stubs/stringprintf.cc')
-rw-r--r-- | src/google/protobuf/stubs/stringprintf.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/google/protobuf/stubs/stringprintf.cc b/src/google/protobuf/stubs/stringprintf.cc index d66a497a..4a5b8582 100644 --- a/src/google/protobuf/stubs/stringprintf.cc +++ b/src/google/protobuf/stubs/stringprintf.cc @@ -44,6 +44,11 @@ namespace protobuf { #ifdef _MSC_VER enum { IS_COMPILER_MSVC = 1 }; +#ifndef va_copy +// Define va_copy for MSVC. This is a hack, assuming va_list is simply a +// pointer into the stack and is safe to copy. +#define va_copy(dest, src) ((dest) = (src)) +#endif #else enum { IS_COMPILER_MSVC = 0 }; #endif |