From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id A3566385841E; Fri, 9 Feb 2024 17:33:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A3566385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707500007; bh=lQ0Q+H3zUYhw7ykVX13cEPspOgqe5zI7+tT08IDHrzw=; h=From:To:Subject:Date:From; b=FnTz2OzMlxZ7RXZFlF/PWHwH5BMOpEYQrMGzWbH67wjz2eRKb7zFG5nZzc4JuhJ0/ 2CoFeDwMDZ060eaQCTVz04YvqAekbEYXuvj9Ip80jDn3Py/lcXctRa5a9qoY+jnFcC Wws6K/su7ezyvGcW8UGVFXm1S4TOyB0/3dqF2IKc= 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: 787f2da8f82cc0b82a046ca7d2cecb82c9633e5f X-Git-Newrev: 756031e69489453cccf14964ae8d8e6fdd27510a Message-Id: <20240209173327.A3566385841E@sourceware.org> Date: Fri, 9 Feb 2024 17:33:27 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=756031e69489453cccf14964ae8d8e6fdd27510a commit 756031e69489453cccf14964ae8d8e6fdd27510a 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))