diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2010-01-11 22:55:47 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2010-01-11 22:55:47 +0000 |
commit | d8a439359a582d29a6ee7b9c0d2309f46544e777 (patch) | |
tree | 99616241dc062d656684c2d6513851d9fc4dd69b /newlib/libc | |
parent | ab48bd3b046c54141c98cb5366cd5b7d21cb8e0d (diff) | |
download | cygnal-d8a439359a582d29a6ee7b9c0d2309f46544e777.tar.gz cygnal-d8a439359a582d29a6ee7b9c0d2309f46544e777.tar.bz2 cygnal-d8a439359a582d29a6ee7b9c0d2309f46544e777.zip |
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.
2
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/include/math.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index 7571e46a0..6e9da28f6 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -275,7 +275,9 @@ extern double lgamma _PARAMS((double)); 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)); @@ -353,7 +355,9 @@ extern float lgammaf _PARAMS((float)); 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) */ |