From 394970663d323b8c9090e6bd8772502f59ee4d7a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 9 May 2011 16:35:56 +0300 Subject: [PATCH] Define a replacement for va_copy for MSVC. nt/config.nt [_MSC_VER] (va_copy): Replacement for the MS compiler. --- nt/ChangeLog | 4 ++++ nt/config.nt | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/nt/ChangeLog b/nt/ChangeLog index 5d691429882..6de2b15fced 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2011-05-09 Eli Zaretskii + + * config.nt [_MSC_VER] (va_copy): Replacement for the MS compiler. + 2011-05-07 Ben Key * configure.bat: Renamed the fusercflags variable to escusercflags diff --git a/nt/config.nt b/nt/config.nt index 55a8bccae19..c071bafc7dc 100644 --- a/nt/config.nt +++ b/nt/config.nt @@ -337,6 +337,17 @@ along with GNU Emacs. If not, see . */ # define restrict #endif +/* A va_copy replacement for MSVC. */ +#ifdef _MSC_VER +# ifdef _WIN64 +# ifndef va_copy +# error "va_copy is needed, but not defined!" +# endif +# else /* not _WIN64 */ +# define va_copy(d,s) ((d) = (s)) +# endif /* not _WIN64 */ +#endif /* _MSC_VER */ + /* Define as a marker that can be attached to declarations that might not be used. This helps to reduce warnings, such as from GCC -Wunused-parameter. */ -- 2.39.2