From 0280c8c0f342663f3a9c3844db5462125bac4a6c Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 23 Oct 2001 17:43:16 +0000 Subject: * libc/include/math.h: The C++ standard adds the single-precision versions of the elementary functions. --- newlib/libc/include/math.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'newlib/libc/include/math.h') 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)); -- cgit v1.2.3