diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2004-08-07 11:58:01 +0400 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2004-08-07 11:58:01 +0400 |
commit | ac8cbf3d2dea46ead5be3626862ffba731b92929 (patch) | |
tree | 9bc7125e307db5d2af8699d2cfdedf39a6177cdb /winsup | |
parent | 889a573ad8968dd138d880adc97a3b44f7669c13 (diff) |
* include/complex.h: Remove __attribute__ ((const)) from
transcendantal and trig functions. Replace __attribute__ ((const))
with __MINGW_ATTRIB_CONST on other declarations.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/mingw/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/mingw/include/complex.h | 52 |
2 files changed, 32 insertions, 26 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index e02000a9d..23827c4de 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,5 +1,11 @@ 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net> + * include/complex.h: Remove __attribute__ ((const)) from + transcendantal and trig functions. Replace __attribute__ ((const)) + with __MINGW_ATTRIB_CONST on other declarations. + +2004-08-07 Danny Smith <dannysmith@users.sourceforge.net> + * include/wchar.h: Reorganize, avoid including other headers. 2004-08-07 Danny Smith <dannysmith@users.sourceforge.net> diff --git a/winsup/mingw/include/complex.h b/winsup/mingw/include/complex.h index 14431d14a..90e7903bd 100644 --- a/winsup/mingw/include/complex.h +++ b/winsup/mingw/include/complex.h @@ -47,47 +47,47 @@ extern "C" { #ifndef RC_INVOKED /* TODO: float and long double versions */ -double __attribute__ ((const)) creal (double _Complex); -double __attribute__ ((const)) cimag (double _Complex); -double __attribute__ ((const)) carg (double _Complex); -double __attribute__ ((const)) cabs (double _Complex); -double _Complex __attribute__ ((const)) conj (double _Complex); -double _Complex __attribute__ ((const)) cacos (double _Complex); -double _Complex __attribute__ ((const)) casin (double _Complex); -double _Complex __attribute__ ((const)) catan (double _Complex); -double _Complex __attribute__ ((const)) ccos (double _Complex); -double _Complex __attribute__ ((const)) csin (double _Complex); -double _Complex __attribute__ ((const)) ctan (double _Complex); -double _Complex __attribute__ ((const)) cacosh (double _Complex); -double _Complex __attribute__ ((const)) casinh (double _Complex); -double _Complex __attribute__ ((const)) catanh (double _Complex); -double _Complex __attribute__ ((const)) ccosh (double _Complex); -double _Complex __attribute__ ((const)) csinh (double _Complex); -double _Complex __attribute__ ((const)) ctanh (double _Complex); -double _Complex __attribute__ ((const)) cexp (double _Complex); -double _Complex __attribute__ ((const)) clog (double _Complex); -double _Complex __attribute__ ((const)) cpow (double _Complex, double _Complex); -double _Complex __attribute__ ((const)) csqrt (double _Complex); -double _Complex __attribute__ ((const)) cproj (double _Complex); +double __MINGW_ATTRIB_CONST creal (double _Complex); +double __MINGW_ATTRIB_CONST cimag (double _Complex); +double __MINGW_ATTRIB_CONST carg (double _Complex); +double __MINGW_ATTRIB_CONST cabs (double _Complex); +double _Complex __MINGW_ATTRIB_CONST conj (double _Complex); +double _Complex cacos (double _Complex); +double _Complex casin (double _Complex); +double _Complex catan (double _Complex); +double _Complex ccos (double _Complex); +double _Complex csin (double _Complex); +double _Complex ctan (double _Complex); +double _Complex cacosh (double _Complex); +double _Complex casinh (double _Complex); +double _Complex catanh (double _Complex); +double _Complex ccosh (double _Complex); +double _Complex csinh (double _Complex); +double _Complex ctanh (double _Complex); +double _Complex cexp (double _Complex); +double _Complex clog (double _Complex); +double _Complex cpow (double _Complex, double _Complex); +double _Complex csqrt (double _Complex); +double _Complex __MINGW_ATTRIB_CONST cproj (double _Complex); #ifdef __GNUC__ -__CRT_INLINE double __attribute__ ((const)) creal (double _Complex _Z) +__CRT_INLINE double __MINGW_ATTRIB_CONST creal (double _Complex _Z) { return __real__ _Z; } -__CRT_INLINE double __attribute__ ((const)) cimag (double _Complex _Z) +__CRT_INLINE double __MINGW_ATTRIB_CONST cimag (double _Complex _Z) { return __imag__ _Z; } -__CRT_INLINE double _Complex __attribute__ ((const)) conj (double _Complex _Z) +__CRT_INLINE double _Complex __MINGW_ATTRIB_CONST conj (double _Complex _Z) { return __extension__ ~_Z; } -__CRT_INLINE double __attribute__ ((const)) carg (double _Complex _Z) +__CRT_INLINE double __MINGW_ATTRIB_CONST carg (double _Complex _Z) { double res; __asm__ ("fpatan;" |