From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 75042386DC5C; Thu, 9 Jun 2022 21:21:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75042386DC5C 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: f18148375b468d0f985faa0c0c2c1cb79e0a312e X-Git-Newrev: 8090e2419bba375fe629eb00690e36a563625c6e Message-Id: <20220609212148.75042386DC5C@sourceware.org> Date: Thu, 9 Jun 2022 21:21:48 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2022 21:21:48 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8090e2419bba375fe629eb00690e36a563625c6e commit 8090e2419bba375fe629eb00690e36a563625c6e 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))