aboutsummaryrefslogtreecommitdiff
path: root/math/complex.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-16 01:39:48 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-16 01:39:48 +0000
commit5985c772100b698aa6cf77997b06e4cfd047e7e7 (patch)
tree27274828616b82fce2ca258e9a8367a6753b8949 /math/complex.h
parent8ae67009786d409e1995536c9dbd7f52c4b4c9be (diff)
downloadglibc-5985c772100b698aa6cf77997b06e4cfd047e7e7.zip
glibc-5985c772100b698aa6cf77997b06e4cfd047e7e7.tar.gz
glibc-5985c772100b698aa6cf77997b06e4cfd047e7e7.tar.bz2
Update.
* math/complex.h: Don't define _Complex macro for gcc 3. Add __extension__ to _Complex_I definition since gcc warns if -pedantic. * math/bits/cmathcalls.h (conj): Add __extension__ since we use ~.
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 bd47126..ac08875 100644
--- a/math/complex.h
+++ b/math/complex.h
@@ -33,15 +33,16 @@ __BEGIN_DECLS
/* We might need to add support for more compilers here. But since ISO
C99 is out hopefully all maintained compilers will soon provide the data
types `float complex' and `double complex'. */
-#if __GNUC_PREREQ (2, 7)
+#if __GNUC_PREREQ (2, 7) && !__GNUC_PREREQ (3, 0)
# define _Complex __complex__
#endif
+#define complex _Complex
/* Narrowest imaginary unit. This depends on the floating-point
evaluation method.
XXX This probably has to go into a gcc related file. */
-#define _Complex_I (1.0iF)
+#define _Complex_I (__extension__ 1.0iF)
/* Another more descriptive name is `I'.
XXX Once we have the imaginary support switch this to _Imaginary_I. */