Merge branch 'MSVC' of https://github.com/fsb4000/novacoin into fsb4000-MSVC
[novacoin.git] / src / util.cpp
index 90af7b1..198267d 100644 (file)
@@ -314,8 +314,12 @@ string vstrprintf(const char *format, va_list ap)
     int ret;
     while (true)
     {
+#ifndef _MSC_VER
         va_list arg_ptr;
         va_copy(arg_ptr, ap);
+#else
+        va_list arg_ptr = ap;
+#endif;
 #ifdef WIN32
         ret = _vsnprintf(p, limit, format, arg_ptr);
 #else