]> Zhao Yanbai Git Server - minix.git/commitdiff
only declare builtin prototypes in C mode
authorBen Gras <ben@minix3.org>
Mon, 28 Feb 2011 11:01:31 +0000 (11:01 +0000)
committerBen Gras <ben@minix3.org>
Mon, 28 Feb 2011 11:01:31 +0000 (11:01 +0000)
include/math.h

index 766a8df4f9278a4933efd6ec6090ff262859e7b9..680ce3dee7ac225ada0b811a505e687bd9800c92 100644 (file)
@@ -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 */