diff options
author | Eli Zaretskii <eliz@gnu.org> | 2011-05-09 16:35:56 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2011-05-09 16:35:56 +0300 |
commit | 71108da8b62bea22bc14c1eb007aaff118676815 (patch) | |
tree | 002b38a55c14ff2f716f208b8090bc8a93195351 /nt | |
parent | 87146245ce30f83353f0d8b0b1ed93c4a59d75f7 (diff) | |
download | emacs-71108da8b62bea22bc14c1eb007aaff118676815.tar.gz |
Define a replacement for va_copy for MSVC.
nt/config.nt [_MSC_VER] (va_copy): Replacement for the MS compiler.
Diffstat (limited to 'nt')
-rw-r--r-- | nt/ChangeLog | 4 | ||||
-rw-r--r-- | nt/config.nt | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 1bbc4649396..7ec19f762a8 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog @@ -1,3 +1,7 @@ +2011-05-09 Eli Zaretskii <eliz@gnu.org> + + * config.nt [_MSC_VER] (va_copy): Replacement for the MS compiler. + 2011-05-07 Ben Key <bkey76@gmail.com> * 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 <http://www.gnu.org/licenses/>. */ # 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. */ |