From: Eli Zaretskii Date: Mon, 9 May 2011 13:35:56 +0000 (+0300) Subject: Define a replacement for va_copy for MSVC. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~56 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=394970663d323b8c9090e6bd8772502f59ee4d7a;p=emacs.git Define a replacement for va_copy for MSVC. nt/config.nt [_MSC_VER] (va_copy): Replacement for the MS compiler. --- 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. */