From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id B1730385742D; Fri, 28 Oct 2022 17:43:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B1730385742D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666978991; bh=qM4xdgFC1VBHASCauCSRSe1j3p+3riowQRLiXzC2z5A=; h=From:To:Subject:Date:From; b=u6OLXKxsD9oiX9mteS/yq3s3zGADEoit+qol6StPysl16PYtXXsp4QKPC5/1OQXc2 iQgirBjZjeUwsmtcFNIDbg8wL/dO3F/DQa/y/O4shR0zwK/QAzcMOFQ5Hn0ysMCQ6w GuIi6STnTAH7gNwyZyjko2k2D+YQ3E0GsAsmDW7s= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] math: Define CMPLX(F,L) for clang X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: 836d5e053849ce9566fedc1a9c3807db25fdd5e9 X-Git-Newrev: 3e4d85ba6fce01914e2e984edc8c579b3aa81fc6 Message-Id: <20221028174311.B1730385742D@sourceware.org> Date: Fri, 28 Oct 2022 17:43:11 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3e4d85ba6fce01914e2e984edc8c579b3aa81fc6 commit 3e4d85ba6fce01914e2e984edc8c579b3aa81fc6 Author: Adhemerval Zanella Date: Thu Mar 24 13:13:43 2022 -0300 math: Define CMPLX(F,L) for clang Diff: --- math/complex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/complex.h b/math/complex.h index 5948fa849e..7bbef4b6b2 100644 --- a/math/complex.h +++ b/math/complex.h @@ -52,7 +52,7 @@ __BEGIN_DECLS #undef I #define I _Complex_I -#if defined __USE_ISOC11 && __GNUC_PREREQ (4, 7) +#if defined __USE_ISOC11 && (__GNUC_PREREQ (4, 7) || defined __clang__) /* Macros to expand into expression of specified complex type. */ # define CMPLX(x, y) __builtin_complex ((double) (x), (double) (y)) # define CMPLXF(x, y) __builtin_complex ((float) (x), (float) (y))