+2010-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
+
+ * libc/include/math.h (log2, log2f): Disable macro versions for C++,
+ as they are incompatible with OpenMP/C++ headers.
+
2010-01-10 Corinna Vinschen <corinna@vinschen.de>
* libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
extern double erf _PARAMS((double));
extern double erfc _PARAMS((double));
extern double log2 _PARAMS((double));
+#if !defined(__cplusplus)
#define log2(x) (log (x) / _M_LOG2_E)
+#endif
#ifndef __math_68881
extern double hypot _PARAMS((double, double));
extern float erff _PARAMS((float));
extern float erfcf _PARAMS((float));
extern float log2f _PARAMS((float));
+#if !defined(__cplusplus)
#define log2f(x) (logf (x) / (float) _M_LOG2_E)
+#endif
extern float hypotf _PARAMS((float, float));
#endif /* ! defined (_REENT_ONLY) */