fixed DBUS_VA_COPY for msvc

This commit is contained in:
Ralf Habacker 2009-11-30 16:01:19 +01:00
parent fd049c3455
commit 8ab7f05a19
2 changed files with 9 additions and 1 deletions

View file

@ -52,6 +52,14 @@ find_package(X11)
OPTION(DBUS_ENABLE_ABSTRACT_SOCKETS "enable support for abstract sockets" ON)
if (MINGW)
set (DBUS_VA_COPY_AS_ARRAY 1)
endif (MINGW)
if (MSVC)
set (DBUS_HAVE_VA_COPY 1)
set (DBUS_VA_COPY_AS_ARRAY 0)
endif (MSVC)
# do config checks
INCLUDE(ConfigureChecks.cmake)

View file

@ -87,7 +87,7 @@
#undef DBUS_VA_COPY_FUNC
#endif
#cmakedefine DBUS_VA_COPY_AS_ARRAY 1
#cmakedefine DBUS_VA_COPY_AS_ARRAY @DBUS_VA_COPY_AS_ARRAY@
// headers
/* Define to 1 if you have dirent.h */