From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id BC423385829B; Wed, 7 Feb 2024 14:08:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC423385829B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707314926; bh=vJ8jys2Bn9JJc2WFV8k/otbgFD012KHNccoA+6c7hr0=; h=From:To:Subject:Date:From; b=RxaboSggy94+6OH9/gfWRlHI3LAFeuxv82v16cw4znMED7C0O48jCUpp+fooE5Ia/ jKZjH4tFQ1iMJLk1ldd7efoF9QgWlw1vYJd1qHGQiNnVeB+qxvomN0cYeCIFdk8cxf vYA2vzz1fxIEdtc+4K5QsF452erlzhGPTqK+6sHU= 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: 15b401eef94a104c56d49b2281677693a1665a87 X-Git-Newrev: bcc0317ceb72b64f5f93f1ef9b60460c36c9805b Message-Id: <20240207140846.BC423385829B@sourceware.org> Date: Wed, 7 Feb 2024 14:08:46 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=bcc0317ceb72b64f5f93f1ef9b60460c36c9805b commit bcc0317ceb72b64f5f93f1ef9b60460c36c9805b 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 29702f4ad4..a5d2f1a8b0 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))