diff options
author | Geoffrey Keating <geoffk@geoffk.org> | 2001-10-23 17:43:16 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@geoffk.org> | 2001-10-23 17:43:16 +0000 |
commit | 0280c8c0f342663f3a9c3844db5462125bac4a6c (patch) | |
tree | 9e27ba80ee5c7012341544565f07dfbe8908c2a3 | |
parent | d3cf36f88dee584e7038e6fa33e728ab55bab578 (diff) | |
download | cygnal-0280c8c0f342663f3a9c3844db5462125bac4a6c.tar.gz cygnal-0280c8c0f342663f3a9c3844db5462125bac4a6c.tar.bz2 cygnal-0280c8c0f342663f3a9c3844db5462125bac4a6c.zip |
* libc/include/math.h: The C++ standard adds the single-precision
versions of the elementary functions.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/math.h | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 9341b5390..dbf7db16f 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2001-10-22 Geoffrey Keating <geoffk@redhat.com> + + * libc/include/math.h: The C++ standard adds the single-precision + versions of the elementary functions. + 2001-10-22 Christopher Faylor <cgf@redhat.com> * libc/posix/execvp.c: Remove obsolete CYGWIN32 considerations diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h index 255bf3bff..e72d9ca21 100644 --- a/newlib/libc/include/math.h +++ b/newlib/libc/include/math.h @@ -114,6 +114,10 @@ extern double drem _PARAMS((double, double)); #endif /* ! defined (_REENT_ONLY) */ +#endif /* ! defined (__STRICT_ANSI__) */ + +#if !defined(__STRICT_ANSI__) || defined(__cplusplus) + /* Single precision versions of ANSI functions. */ extern float atanf _PARAMS((float)); @@ -142,6 +146,10 @@ extern float sqrtf _PARAMS((float)); extern float fmodf _PARAMS((float, float)); #endif /* ! defined (_REENT_ONLY) */ +#endif /* !defined(__STRICT_ANSI__) || defined(__cplusplus) */ + +#ifndef __STRICT_ANSI__ + /* Other single precision functions. */ extern float infinityf _PARAMS((void)); |