From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 5D1DC3858436; Thu, 21 Dec 2023 18:55:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D1DC3858436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703184932; bh=z+Rsrjfv2i7HIXDYCbghlorkXjEzSk4CTcWugHAgnkw=; h=From:To:Subject:Date:From; b=KB8mPW81FdEgciveEfCtKIbHWUlcMdSNbtOEqm8P/VllpdhqnftcODiMju2AaeJBo FrB8949IRgGh3SgYR9AEbm07jIvNIj/8FekJc8MwEFnAZcVMtefn/BjI9S1JnVpUOg zB7dEeKWPoWdcB/ZyNrLBLlXUbAt7axewATb1zMw= 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: 1da9ccc888b092a6693870084188e1ce16fbbb61 X-Git-Newrev: e91d283f1d15e99da1529aca504f65e67ec95a45 Message-Id: <20231221185532.5D1DC3858436@sourceware.org> Date: Thu, 21 Dec 2023 18:55:32 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e91d283f1d15e99da1529aca504f65e67ec95a45 commit e91d283f1d15e99da1529aca504f65e67ec95a45 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 0b943627d9..5fc03399d7 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))