From 08332d5357b02946ff82f80be217576e692e6c62 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 5 Feb 2018 04:58:07 +0000 Subject: Makefile.sub: va_copy in old version * win32/Makefile.sub: va_copy is available since VS12 (VC 18.00). simple copy same as VC1 19.00. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/Makefile.sub | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/win32/Makefile.sub b/win32/Makefile.sub index a55967d12e..121664286e 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -618,7 +618,11 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub #define HAVE_PROTOTYPES 1 #define TOKEN_PASTE(x,y) x##y #define HAVE_STDARG_PROTOTYPES 1 +!if $(MSC_VER) >= 1800 #define HAVE_VA_COPY 1 +!else +#define HAVE_VA_COPY_VIA_STRUCT_ASSIGNMENT 1 +!endif !if $(MSC_VER) > 1100 #define NORETURN(x) __declspec(noreturn) x !endif -- cgit v1.2.3