mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-04 08:18:00 +02:00
Only use _DBUS_VA_COPY_ASSIGN to implement va_copy() on MSVC
We don't know that _DBUS_VA_COPY_ASSIGN is always the right choice. However, we do know that it's OK on MSVC versions too old to support va_copy(). Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
6278951f6d
commit
38e4d72fdc
1 changed files with 2 additions and 2 deletions
|
|
@ -117,10 +117,10 @@ if(HAVE_VA_COPY)
|
|||
set(DBUS_VA_COPY va_copy CACHE STRING "va_copy function")
|
||||
elseif(HAVE___VA_COPY)
|
||||
set(DBUS_VA_COPY __va_copy CACHE STRING "va_copy function")
|
||||
else()
|
||||
elseif(MSVC)
|
||||
# this is used for msvc < 2013
|
||||
set(DBUS_VA_COPY _DBUS_VA_COPY_ASSIGN)
|
||||
|
||||
else()
|
||||
CHECK_C_SOURCE_RUNS("
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue