]> sourceware.org Git - newlib-cygwin.git/commitdiff
2010-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
authorJeff Johnston <jjohnstn@redhat.com>
Mon, 11 Jan 2010 22:55:47 +0000 (22:55 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Mon, 11 Jan 2010 22:55:47 +0000 (22:55 +0000)
        * libc/include/math.h (log2, log2f): Disable macro versions for C++,
        as they are incompatible with OpenMP/C++ headers.

2

newlib/ChangeLog
newlib/libc/include/math.h

index 78ce466c66bc5c172a9735b3fbbe6676f087e264..5136fa41fd8c2ec33dc556b0c032d39746480985 100644 (file)
@@ -1,3 +1,8 @@
+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
index 7571e46a049bf6ae4322841f34f600321e1952a8..6e9da28f6ca289aa5964f7cc48bb4937eadd07ad 100644 (file)
@@ -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) */
 
This page took 0.049444 seconds and 5 git commands to generate.