summaryrefslogtreecommitdiff
path: root/source3/lib/snprintf.c
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2003-10-24 05:47:39 +0000
committerRichard Sharpe <sharpe@samba.org>2003-10-24 05:47:39 +0000
commit261c0028dcc3d15f82ed7f5db6cb89fc77083418 (patch)
treebc8c23436c10b8d05b6320e83fb731c88b4ba20e /source3/lib/snprintf.c
parent7967eeb659574932cdaa770941afbcfd2e991a3e (diff)
downloadsamba-261c0028dcc3d15f82ed7f5db6cb89fc77083418.tar.gz
samba-261c0028dcc3d15f82ed7f5db6cb89fc77083418.tar.bz2
samba-261c0028dcc3d15f82ed7f5db6cb89fc77083418.zip
Check for va_copy before you check for __va_copy, since va_copy is the
actual standard, and __va_copy was the proposed standard. (This used to be commit 4ab7947e601e61cacd7ff541ee881850d9808387)
Diffstat (limited to 'source3/lib/snprintf.c')
-rw-r--r--source3/lib/snprintf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/snprintf.c b/source3/lib/snprintf.c
index a2f9f592db..5b0cfa1ab3 100644
--- a/source3/lib/snprintf.c
+++ b/source3/lib/snprintf.c
@@ -147,10 +147,14 @@
#ifndef VA_COPY
#ifdef HAVE_VA_COPY
+#define VA_COPY(dest, src) va_copy(dest, src)
+#else
+#ifdef HAVE___VA_COPY
#define VA_COPY(dest, src) __va_copy(dest, src)
#else
#define VA_COPY(dest, src) (dest) = (src)
#endif
+#endif
/*
* dopr(): poor man's version of doprintf