diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2014-01-29 19:30:27 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2014-01-29 19:30:27 +0000 |
| commit | a5b2dbc259e289ea23fe9aebb34eba2c1dc7fefb (patch) | |
| tree | 5812a629bd48b0968dee7411809c6a6a19680390 /include/limits | |
| parent | 1c9014238e909c768bf84564733b5441d5c9ea2b (diff) | |
Notes
Diffstat (limited to 'include/limits')
| -rw-r--r-- | include/limits | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/limits b/include/limits index 9b9d7a6f828d..d917c577f148 100644 --- a/include/limits +++ b/include/limits @@ -111,9 +111,13 @@ template<> class numeric_limits<cv long double>; #include <__undef_min_max> -#if defined(_MSC_VER) +#if defined(_LIBCPP_MSVCRT) #include "support/win32/limits_win32.h" -#endif // _MSC_VER +#endif // _LIBCPP_MSVCRT + +#if defined(__IBMCPP__) +#include "support/ibm/limits.h" +#endif // __IBMCPP__ _LIBCPP_BEGIN_NAMESPACE_STD @@ -433,7 +437,7 @@ protected: }; template <class _Tp> -class _LIBCPP_TYPE_VIS numeric_limits +class _LIBCPP_TYPE_VIS_ONLY numeric_limits : private __libcpp_numeric_limits<typename remove_cv<_Tp>::type> { typedef __libcpp_numeric_limits<typename remove_cv<_Tp>::type> __base; @@ -526,7 +530,7 @@ template <class _Tp> _LIBCPP_CONSTEXPR const float_round_style numeric_limits<_Tp>::round_style; template <class _Tp> -class _LIBCPP_TYPE_VIS numeric_limits<const _Tp> +class _LIBCPP_TYPE_VIS_ONLY numeric_limits<const _Tp> : private numeric_limits<_Tp> { typedef numeric_limits<_Tp> __base; @@ -619,7 +623,7 @@ template <class _Tp> _LIBCPP_CONSTEXPR const float_round_style numeric_limits<const _Tp>::round_style; template <class _Tp> -class _LIBCPP_TYPE_VIS numeric_limits<volatile _Tp> +class _LIBCPP_TYPE_VIS_ONLY numeric_limits<volatile _Tp> : private numeric_limits<_Tp> { typedef numeric_limits<_Tp> __base; @@ -712,7 +716,7 @@ template <class _Tp> _LIBCPP_CONSTEXPR const float_round_style numeric_limits<volatile _Tp>::round_style; template <class _Tp> -class _LIBCPP_TYPE_VIS numeric_limits<const volatile _Tp> +class _LIBCPP_TYPE_VIS_ONLY numeric_limits<const volatile _Tp> : private numeric_limits<_Tp> { typedef numeric_limits<_Tp> __base; |
