public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Put CMPLX* macros under ISO C11
@ 2021-08-27 23:21 Fangrui Song
  0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-27 23:21 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3235a02111d4f554b6686034bf60b6847a04cf64

commit 3235a02111d4f554b6686034bf60b6847a04cf64
Author: Stan Shebs <stanshebs@google.com>
Date:   Wed Jan 24 12:49:39 2018 -0800

    Put CMPLX* macros under ISO C11

Diff:
---
 math/complex.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/math/complex.h b/math/complex.h
index 50701f6115..a7c911dfdb 100644
--- a/math/complex.h
+++ b/math/complex.h
@@ -52,7 +52,7 @@ __BEGIN_DECLS
 #undef I
 #define I _Complex_I
 
-#if defined(__clang__)
+#if defined __USE_ISOC11 && defined __clang__
 /* Clang casts types to _Complex instead of using __builtin_complex.  */
 #define __CMPLX(x, y, t) (+(_Complex t){(t)(x), (t)(y)})
 #define CMPLX(x, y) __CMPLX(x, y, double)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-27 23:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 23:21 [glibc/maskray/grte] Put CMPLX* macros under ISO C11 Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).