1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00

r4718: don't use the deprecated __va_copy() unless va_copy() is unavailable

This commit is contained in:
Andrew Tridgell 2005-01-12 22:30:54 +00:00 committed by Gerald (Jerry) Carter
parent 48b52584ab
commit 603ef69be0
2 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,8 @@
#ifndef VA_COPY
#ifdef HAVE_VA_COPY
#define VA_COPY(dest, src) va_copy(dest, src)
#elif defined(HAVE___VA_COPY)
#define VA_COPY(dest, src) __va_copy(dest, src)
#else
#define VA_COPY(dest, src) (dest) = (src)

View File

@ -873,6 +873,8 @@ char *talloc_strndup(const void *t, const char *p, size_t n)
#ifndef VA_COPY
#ifdef HAVE_VA_COPY
#define VA_COPY(dest, src) va_copy(dest, src)
#elif defined(HAVE___VA_COPY)
#define VA_COPY(dest, src) __va_copy(dest, src)
#else
#define VA_COPY(dest, src) (dest) = (src)