- removed the check for VA_COPY from CMakeLists.txt.

This is because nothing uses va_copy anymore and it's a mandatory part of C++11, therefore always available.
This commit is contained in:
Christoph Oelckers 2016-04-09 22:07:14 +02:00
parent 1f1a0ca847
commit dc72e7f3c2

View file

@ -555,22 +555,6 @@ if( UNIX )
endif()
endif()
CHECK_CXX_SOURCE_COMPILES(
"#include <stdarg.h>
int main() { va_list list1, list2; va_copy(list1, list2); return 0; }"
HAS_VA_COPY )
if( NOT HAS_VA_COPY )
CHECK_CXX_SOURCE_COMPILES(
"#include <stdarg.h>
int main() { va_list list1, list2; __va_copy(list1, list2); return 0; }"
HAS___VA_COPY )
if( HAS___VA_COPY )
add_definitions( -Dva_copy=__va_copy )
else()
add_definitions( -DNO_VA_COPY )
endif()
endif()
# Flags
if( BACKPATCH )