summaryrefslogtreecommitdiff
path: root/cmake/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/ConfigureChecks.cmake')
-rw-r--r--cmake/ConfigureChecks.cmake20
1 files changed, 1 insertions, 19 deletions
diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake
index 1144e93d..21346a24 100644
--- a/cmake/ConfigureChecks.cmake
+++ b/cmake/ConfigureChecks.cmake
@@ -121,25 +121,7 @@ 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>
- static void f (int i, ...) {
- va_list args1, args2;
- va_start (args1, i);
- args2 = args1;
- if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
- exit (1);
- va_end (args1); va_end (args2);
- }
- int main() {
- f (0, 42);
- return 0;
- }
- " VA_COPY_AS_ARRAY)
- if (NOT VA_COPY_AS_ARRAY)
- set(DBUS_VA_COPY_AS_ARRAY 1 CACHE STRING "Set to 1 if va_list cannot be copied as a value")
- endif()
+ message(FATAL_ERROR "dbus requires an ISO C99-compatible va_copy() macro, or a similar __va_copy(), or MSVC >= 2010")
endif()
CHECK_C_SOURCE_COMPILES("