1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
* 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 ~.
This commit is contained in:
Ulrich Drepper
2000-09-16 01:39:48 +00:00
parent 8ae6700978
commit 5985c77210
3 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2000-09-15 Ulrich Drepper <drepper@redhat.com> 2000-09-15 Ulrich Drepper <drepper@redhat.com>
* 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 ~.
* include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX if
necessary. Move includes of POSIX and Unix limits files to the necessary. Move includes of POSIX and Unix limits files to the
end. end.

View File

@ -151,7 +151,7 @@ __MATH_PRECNAME(creal) (_Mdouble_complex_ __z) __THROW
extern __inline _Mdouble_complex_ extern __inline _Mdouble_complex_
__MATH_PRECNAME(conj) (_Mdouble_complex_ __z) __THROW __MATH_PRECNAME(conj) (_Mdouble_complex_ __z) __THROW
{ {
return ~__z; return __extension__ ~__z;
} }
#endif #endif

View File

@ -33,15 +33,16 @@ __BEGIN_DECLS
/* We might need to add support for more compilers here. But since ISO /* 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 C99 is out hopefully all maintained compilers will soon provide the data
types `float complex' and `double complex'. */ types `float complex' and `double complex'. */
#if __GNUC_PREREQ (2, 7) #if __GNUC_PREREQ (2, 7) && !__GNUC_PREREQ (3, 0)
# define _Complex __complex__ # define _Complex __complex__
#endif #endif
#define complex _Complex
/* Narrowest imaginary unit. This depends on the floating-point /* Narrowest imaginary unit. This depends on the floating-point
evaluation method. evaluation method.
XXX This probably has to go into a gcc related file. */ 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'. /* Another more descriptive name is `I'.
XXX Once we have the imaginary support switch this to _Imaginary_I. */ XXX Once we have the imaginary support switch this to _Imaginary_I. */