From cf8041403bb12bfb8928466896166fb1d3228c7b Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 30 May 2001 11:31:56 +0000 Subject: [PATCH] Tidied up preprocessor logic for wchar_t specialisation [SVN r10244] --- include/boost/detail/limits.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/boost/detail/limits.hpp b/include/boost/detail/limits.hpp index 58834ae5..e1da4059 100644 --- a/include/boost/detail/limits.hpp +++ b/include/boost/detail/limits.hpp @@ -268,6 +268,8 @@ class numeric_limits : public _Integer_limits {}; +#ifndef BOOST_NO_INTRINSIC_WCHAR_T +#if !defined(WCHAR_MAX) || !defined(WCHAR_MIN) #if !defined(_WIN32) && !defined(__CYGWIN__) template<> class numeric_limits @@ -279,6 +281,13 @@ class numeric_limits : public _Integer_limits {}; #endif +#else +template<> +class numeric_limits + : public _Integer_limits +{}; +#endif +#endif template<> class numeric_limits