From b6f25271a9efdcccce8c10baee82fe13a061182a Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 28 Feb 2011 11:01:31 +0000 Subject: [PATCH] only declare builtin prototypes in C mode --- include/math.h | 2 ++ 1 file changed, 2 insertions(+) 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 */