summaryrefslogtreecommitdiff
path: root/nt
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2011-05-09 16:35:56 +0300
committerEli Zaretskii <eliz@gnu.org>2011-05-09 16:35:56 +0300
commit394970663d323b8c9090e6bd8772502f59ee4d7a (patch)
tree6b98b78b7971addd5cb739b8792087350f103553 /nt
parent57679c8695cd63c63dd33ba548fefdef68a5cca5 (diff)
downloademacs-394970663d323b8c9090e6bd8772502f59ee4d7a.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/ChangeLog4
-rw-r--r--nt/config.nt11
2 files changed, 15 insertions, 0 deletions
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 <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. */