Fix MinGW-Bug [2160227]: Eliminate conflicting declarations and implementations of scalb().

This commit is contained in:
Keith Marshall 2008-10-13 22:47:58 +00:00
parent 5f9ca0d25a
commit 206473437f
3 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2008-10-13 Keith Marshall <keithmarshall@users.sourceforge.net>
Fix MinGW-Bug [2160227]
Eliminate conflicting declarations and implementations of scalb().
* moldname.def.in (scalb): Comment out of EXPORTS list.
* include/math.h (scalb): Comment out OLDNAMES prototype; it conflicts
with GCC's built-in declaration.
2008-10-12 Christopher Faylor <me+cygwin@cgf.cx> 2008-10-12 Christopher Faylor <me+cygwin@cgf.cx>
* Makefile.in: Use a different method to invoke gcc in a cygwin-hosted * Makefile.in: Use a different method to invoke gcc in a cygwin-hosted

View File

@ -259,7 +259,14 @@ _CRTIMP double __cdecl y1 (double);
_CRTIMP double __cdecl yn (int, double); _CRTIMP double __cdecl yn (int, double);
_CRTIMP double __cdecl chgsign (double); _CRTIMP double __cdecl chgsign (double);
/*
* scalb() is a GCC built-in.
* Exclude this _scalb() stub; the semantics are incompatible
* with the built-in implementation.
*
_CRTIMP double __cdecl scalb (double, long); _CRTIMP double __cdecl scalb (double, long);
*
*/
_CRTIMP int __cdecl finite (double); _CRTIMP int __cdecl finite (double);
_CRTIMP int __cdecl fpclass (double); _CRTIMP int __cdecl fpclass (double);

View File

@ -141,7 +141,10 @@ y0
y1 y1
yn yn
chgsign chgsign
scalb ; omit scalb...
; it would conflict with the GCC built-in, which exhibits
; semantics differing from the MSVCRT implementation.
;scalb
finite finite
fpclass fpclass
; C99 functions ; C99 functions