From 8875e7ad84fd62fb2f686426e65c5f99a04581dd Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sat, 26 Nov 2005 13:40:54 +0000 Subject: [PATCH] Only define wxIntegerHash::longlongHash when long long isn't long git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/hashmap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index ae3667ce41..0a20a103ea 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -460,11 +460,13 @@ class WXDLLIMPEXP_BASE wxIntegerHash WX_HASH_MAP_NAMESPACE::hash shortHash; WX_HASH_MAP_NAMESPACE::hash ushortHash; +#if defined wxLongLong_t && !defined wxLongLongIsLong size_t longlongHash( wxLongLong_t x ) const { return longHash( wx_truncate_cast(long, x) ) ^ longHash( wx_truncate_cast(long, x >> (sizeof(long) * 8)) ); } +#endif public: wxIntegerHash() { } -- 2.45.2