From 6f572654a2ef55b9f506205b8bdb0fe81dd54c6e Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Wed, 6 Sep 2017 19:47:21 -0700 Subject: [PATCH] add va_copy for all MSVC below 2013 --- libretro-common/include/compat/msvc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libretro-common/include/compat/msvc.h b/libretro-common/include/compat/msvc.h index 3ff05d47a1..8319b5df7d 100644 --- a/libretro-common/include/compat/msvc.h +++ b/libretro-common/include/compat/msvc.h @@ -86,9 +86,10 @@ typedef int ssize_t; #pragma warning(disable : 4723) #pragma warning(disable : 4996) -/* roundf is available since MSVC 2013 */ +/* roundf and va_copy is available since MSVC 2013 */ #if _MSC_VER < 1800 #define roundf(in) (in >= 0.0f ? floorf(in + 0.5f) : ceilf(in - 0.5f)) +#define va_copy(x, y) ((x) = (y)) #endif #if _MSC_VER <= 1200 @@ -116,9 +117,6 @@ typedef int ssize_t; #define _strtoui64(x, y, z) (_atoi64(x)) #endif - #ifndef va_copy - #define va_copy(x, y) ((x) = (y)) - #endif #endif #ifndef PATH_MAX