diff options
author | Corinna Vinschen <vinschen@redhat.com> | 2006-12-01 09:16:41 +0000 |
---|---|---|
committer | Corinna Vinschen <vinschen@redhat.com> | 2006-12-01 09:16:41 +0000 |
commit | 17f0f807300af819d41c5d4e497cc750269d009f (patch) | |
tree | f525e60f98dcc8b1691794a3d8109c08f07e8e15 | |
parent | d68fc55226a9e8d4aa2e4b5b5d8ac34eda123a18 (diff) | |
download | gdb-17f0f807300af819d41c5d4e497cc750269d009f.tar.gz |
* libc/include/math.h: Allow C99 functions/macros to be
defined for C++ even when __STRICT_ANSI__.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/math.h | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 952b85b2107..f7105e00677 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2006-11-30 Lev Bishop <lev.bishop@gmail.com> + + * libc/include/math.h: Allow C99 functions/macros to be + defined for C++ even when __STRICT_ANSI__. + 2006-11-29 Jeff Johnston <jjohnstn@redhat.com> * libc/stdio/makebuf.c (__smakebuf): If dealing with diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index 2e1533ad8ae..3e96757c8e3 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -102,7 +102,7 @@ extern double fmod _PARAMS((double, double)); #endif /* ! defined (__math_68881) */ #endif /* ! defined (_REENT_ONLY) */ -#ifndef __STRICT_ANSI__ +#if !defined(__STRICT_ANSI__) || defined(__cplusplus) /* ISO C99 types and macros. */ @@ -233,7 +233,7 @@ extern double drem _PARAMS((double, double)); #endif /* ! defined (_REENT_ONLY) */ -#endif /* ! defined (__STRICT_ANSI__) */ +#endif /* !defined (__STRICT_ANSI__) || defined(__cplusplus) */ #if !defined(__STRICT_ANSI__) || defined(__cplusplus) @@ -336,7 +336,8 @@ extern int *__signgam _PARAMS((void)); #define __signgam_r(ptr) _REENT_SIGNGAM(ptr) /* The exception structure passed to the matherr routine. */ - +/* We have a problem when using C++ since `exception' is a reserved + name in C++. */ #ifdef __cplusplus struct __exception #else |