From: Ben Gras Date: Mon, 28 Feb 2011 11:01:31 +0000 (+0000) Subject: only declare builtin prototypes in C mode X-Git-Tag: v3.2.0~627 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.log?a=commitdiff_plain;h=b6f25271a9efdcccce8c10baee82fe13a061182a;p=minix.git only declare builtin prototypes in C mode --- diff --git a/include/math.h b/include/math.h index 766a8df4f..680ce3dee 100644 --- a/include/math.h +++ b/include/math.h @@ -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 */