only declare builtin prototypes in C mode
This commit is contained in:
parent
81b63473c0
commit
b6f25271a9
1 changed files with 2 additions and 0 deletions
|
@ -75,6 +75,7 @@ _PROTOTYPE( double trunc, (double x) );
|
|||
* We allow them in the GNU compiler because they are builtins there.
|
||||
*/
|
||||
#ifdef __GNUC__
|
||||
#ifndef __cplusplus
|
||||
_PROTOTYPE( float powf, (float, float) );
|
||||
_PROTOTYPE( float fmodf, (float, float) );
|
||||
_PROTOTYPE( double erf, (double) );
|
||||
|
@ -98,5 +99,6 @@ _PROTOTYPE( double logb, (double) );
|
|||
_PROTOTYPE( double nextafter, (double, double) );
|
||||
_PROTOTYPE( double scalb, (double, double) );
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif /* _MATH_H */
|
||||
|
|
Loading…
Reference in a new issue