From a967703ab5c88b8138a5392e4711db8fc8c606ec Mon Sep 17 00:00:00 2001 From: Thomas Witt Date: Tue, 22 May 2007 03:55:10 +0000 Subject: [PATCH] Hash warning patch 2 see Trac #952 [SVN r37737] --- include/boost/functional/hash/hash.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/functional/hash/hash.hpp b/include/boost/functional/hash/hash.hpp index 56d36ab..993977e 100644 --- a/include/boost/functional/hash/hash.hpp +++ b/include/boost/functional/hash/hash.hpp @@ -46,7 +46,7 @@ namespace boost std::size_t hash_value(long); std::size_t hash_value(unsigned long); -#if BOOST_HAS_LONG_LONG && defined(_M_X64) && defined(_WIN64) +#if defined(BOOST_HAS_LONG_LONG) && defined(_M_X64) && defined(_WIN64) // On 64-bit windows std::size_t is a typedef for unsigned long long, which // isn't due to be supported until Boost 1.35. So add support here. // (Technically, Boost.Hash isn't actually documented as supporting @@ -122,7 +122,7 @@ namespace boost return static_cast(v); } -#if BOOST_HAS_LONG_LONG && defined(_M_X64) && defined(_WIN64) +#if defined(BOOST_HAS_LONG_LONG) && defined(_M_X64) && defined(_WIN64) inline std::size_t hash_value(long long v) { return v;