From 8a9fe644d0cd9b5827ddcd0acf2b01d1816b48bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bissey?= Date: Mon, 19 Sep 2016 09:36:50 +1200 Subject: [PATCH] Remove use of internal header- cmath should be sufficient. Fix declaration. --- build/pkgs/lcalc/patches/clang.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 build/pkgs/lcalc/patches/clang.patch diff --git a/build/pkgs/lcalc/patches/clang.patch b/build/pkgs/lcalc/patches/clang.patch new file mode 100644 index 00000000000..6cebccb9bf2 --- /dev/null +++ b/build/pkgs/lcalc/patches/clang.patch @@ -0,0 +1,22 @@ +diff --git a/include/Lcomplex.h b/include/Lcomplex.h +index aa513a6..a36088e 100644 +--- a/include/Lcomplex.h ++++ b/include/Lcomplex.h +@@ -45,8 +45,6 @@ + + #pragma GCC system_header + +-#include +- + //no longer include: + //#include only thing used was is_floating... + //gcc 4.0 cpp_type_traits.h is not compatible with gcc 3.3. +@@ -135,7 +133,7 @@ namespace std + template + complex<_Tp>& operator/=(const complex<_Up>&); + +- friend reset(complex<_Tp>& C) { ++ friend void reset(complex<_Tp>& C) { + reset(C._M_real); + reset(C._M_imag); + }