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:
parent
48b52584ab
commit
603ef69be0
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user