mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-02 04:20:28 +08:00
libc/include/math.h: Remove parameter name
As discussed in GCC bug 97088 (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97088), parameters in prototypes of library functions should use reserved names, or no name at all. This patch removes the 'x' parameter name from extern int __isinff (float); extern int __isinfd (double); extern int __isnanf (float); extern int __isnand (double); extern int __fpclassifyf (float); extern int __fpclassifyd (double); extern int __signbitf (float); extern int __signbitd (double); to avoid possible clashes with user code in case someone uses before including Newlib's math.h (or uses some other conflicting definition)
This commit is contained in:
parent
98e90ec89f
commit
79b37d2bf4
@ -201,14 +201,14 @@ extern int isnan (double);
|
||||
# define math_errhandling (_MATH_ERRHANDLING_ERRNO | _MATH_ERRHANDLING_ERREXCEPT)
|
||||
#endif
|
||||
|
||||
extern int __isinff (float x);
|
||||
extern int __isinfd (double x);
|
||||
extern int __isnanf (float x);
|
||||
extern int __isnand (double x);
|
||||
extern int __fpclassifyf (float x);
|
||||
extern int __fpclassifyd (double x);
|
||||
extern int __signbitf (float x);
|
||||
extern int __signbitd (double x);
|
||||
extern int __isinff (float);
|
||||
extern int __isinfd (double);
|
||||
extern int __isnanf (float);
|
||||
extern int __isnand (double);
|
||||
extern int __fpclassifyf (float);
|
||||
extern int __fpclassifyd (double);
|
||||
extern int __signbitf (float);
|
||||
extern int __signbitd (double);
|
||||
|
||||
/* Note: isinf and isnan were once functions in newlib that took double
|
||||
* arguments. C99 specifies that these names are reserved for macros
|
||||
|
Loading…
x
Reference in New Issue
Block a user