aboutsummaryrefslogtreecommitdiff
path: root/math/complex.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/complex.h')
-rw-r--r--math/complex.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/math/complex.h b/math/complex.h
index 29702f4..c925c5c 100644
--- a/math/complex.h
+++ b/math/complex.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997-2024 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2025 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -52,7 +52,8 @@ __BEGIN_DECLS
#undef I
#define I _Complex_I
-#if defined __USE_ISOC11 && __GNUC_PREREQ (4, 7)
+#if defined __USE_ISOC11 \
+ && (__GNUC_PREREQ (4, 7) || __glibc_clang_prereq (12, 0))
/* 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))