diff options
Diffstat (limited to 'contrib/libstdc++/include/c/std_cmath.h')
-rw-r--r-- | contrib/libstdc++/include/c/std_cmath.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/libstdc++/include/c/std_cmath.h b/contrib/libstdc++/include/c/std_cmath.h index beb7141..fcaa759 100644 --- a/contrib/libstdc++/include/c/std_cmath.h +++ b/contrib/libstdc++/include/c/std_cmath.h @@ -1,6 +1,6 @@ // -*- C++ -*- forwarding header. -// Copyright (C) 2000, 2002 Free Software Foundation, Inc. +// Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -31,9 +31,9 @@ // ISO C++ 14882: 26.5 C library // -#ifndef _CPP_CMATH -#define _CPP_CMATH 1 - +#ifndef _GLIBCXX_CMATH +#define _GLIBCXX_CMATH 1 + #pragma GCC system_header #include <bits/c++config.h> @@ -79,7 +79,7 @@ #undef islessgreater #undef isunordered -namespace std +namespace std { inline double abs(double __x) @@ -93,11 +93,11 @@ namespace std abs(long double __x) { return __builtin_fabsl(__x); } -#if _GLIBCPP_HAVE_MODFF - inline float +#if _GLIBCXX_HAVE_MODFF + inline float modf(float __x, float* __iptr) { return modff(__x, __iptr); } #else - inline float + inline float modf(float __x, float* __iptr) { double __tmp; @@ -107,13 +107,13 @@ namespace std } #endif -#if _GLIBCPP_HAVE_MODFL - inline long double +#if _GLIBCXX_HAVE_MODFL + inline long double modf(long double __x, long double* __iptr) { return modfl(__x, __iptr); } #else - inline long double - modf(long double __x, long double* __iptr) - { + inline long double + modf(long double __x, long double* __iptr) + { double __tmp; double __res = modf(static_cast<double>(__x), &__tmp); * __iptr = static_cast<long double>(__tmp); |