only declare builtin prototypes in C mode

This commit is contained in:
Ben Gras 2011-02-28 11:01:31 +00:00
parent 81b63473c0
commit b6f25271a9

View file

@ -75,6 +75,7 @@ _PROTOTYPE( double trunc, (double x) );
* We allow them in the GNU compiler because they are builtins there. * We allow them in the GNU compiler because they are builtins there.
*/ */
#ifdef __GNUC__ #ifdef __GNUC__
#ifndef __cplusplus
_PROTOTYPE( float powf, (float, float) ); _PROTOTYPE( float powf, (float, float) );
_PROTOTYPE( float fmodf, (float, float) ); _PROTOTYPE( float fmodf, (float, float) );
_PROTOTYPE( double erf, (double) ); _PROTOTYPE( double erf, (double) );
@ -98,5 +99,6 @@ _PROTOTYPE( double logb, (double) );
_PROTOTYPE( double nextafter, (double, double) ); _PROTOTYPE( double nextafter, (double, double) );
_PROTOTYPE( double scalb, (double, double) ); _PROTOTYPE( double scalb, (double, double) );
#endif #endif
#endif
#endif /* _MATH_H */ #endif /* _MATH_H */