From: Martin Kroeker Date: Tue, 5 Feb 2019 12:30:13 +0000 (+0100) Subject: Include complex rather than complex.h in C++ contexts X-Git-Tag: v0.3.6^2~56^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4b82d7bc4c20da29c19b2eece602002bd5fe4af;p=platform%2Fupstream%2Fopenblas.git Include complex rather than complex.h in C++ contexts to avoid name clashes e.g. with boost headers that use I as a generic placeholder. Fixes #1992 as suggested by aprokop in that issue ticket. --- diff --git a/lapack-netlib/LAPACKE/include/lapacke.h b/lapack-netlib/LAPACKE/include/lapacke.h index 6ded78c..11740e1 100644 --- a/lapack-netlib/LAPACKE/include/lapacke.h +++ b/lapack-netlib/LAPACKE/include/lapacke.h @@ -86,7 +86,11 @@ lapack_complex_float lapack_make_complex_float( float re, float im ); /* Complex type (double precision) */ #ifndef lapack_complex_double +#ifndef __cplusplus #include +#else +#include +#endif #define lapack_complex_double double _Complex #endif