summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-07-19 12:43:58 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-11-05 18:30:41 +0100
commit7770ce574efd1f089619fbc2f4b901b64852e197 (patch)
tree157a2bcd5fffe66f91600a4efb81482b401a73ae
parent8d9cdb74ef715aefc5c962569008dca0a8212db1 (diff)
Detect failing Clang with GCC 4.7 headers and --std=gnu++0x scenarios
Change-Id: I6caa48a428ac7fef23f7c3e6fc7896b7e3a8d0fc Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
-rw-r--r--configure.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 2f01827d2db4..cd3c4ca61261 100644
--- a/configure.in
+++ b/configure.in
@@ -4839,6 +4839,9 @@ if test "$GCC" = "yes"; then
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <stddef.h>
+#include <vector>
+ // some Clang fail when compiling against GCC 4.7 headers with --std=gnu++0x
+
template <typename T, size_t S> char (&sal_n_array_size( T(&)[S] ))[S];
namespace