From b89888ca9d6d10c850619c726e38584ca6637578 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 15 Jun 2017 21:56:42 +0300 Subject: Clang: substitute __float128 with short instead of void There is an argument of this type in std_abs.h. void argument is invalid. Replacing with float, double or long double causes an error in type_traits, which has template specializations for __is_floating_point_helper for all these types. Change-Id: Ife95fa992cbf9684bc67a2098d6609a9a925d015 Reviewed-by: Ivan Donchevskii Reviewed-by: Nikolai Kosjar --- src/plugins/cpptools/compileroptionsbuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/compileroptionsbuilder.cpp') diff --git a/src/plugins/cpptools/compileroptionsbuilder.cpp b/src/plugins/cpptools/compileroptionsbuilder.cpp index d65b7caff6..e55832ab86 100644 --- a/src/plugins/cpptools/compileroptionsbuilder.cpp +++ b/src/plugins/cpptools/compileroptionsbuilder.cpp @@ -392,7 +392,7 @@ void CompilerOptionsBuilder::addDefineFloat128ForMingw() // TODO: Remove once this is fixed in clang >= 3.9. // https://llvm.org/bugs/show_bug.cgi?id=30685 if (m_projectPart.toolchainType == ProjectExplorer::Constants::MINGW_TOOLCHAIN_TYPEID) - addDefine("#define __float128 void"); + addDefine("#define __float128 short"); } QString CompilerOptionsBuilder::includeDirOption() const -- cgit v1.2.1