From: Vadim Zeitlin Date: Thu, 28 Apr 2011 14:20:29 +0000 (+0000) Subject: Don't specialize std::numeric_limits<> for wxLongLong when using VC6. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c92e136d9a2d9919fc747d109610cd4d16c6cc91?ds=inline Don't specialize std::numeric_limits<> for wxLongLong when using VC6. This doesn't work with VC6 anyhow as it doesn't provide numeric_limits<> specialization for __int64 and results in many warnings C4663 as the standard header itself uses obsolete template specialization syntax. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/longlong.h b/include/wx/longlong.h index de468676fd..ca687f6861 100644 --- a/include/wx/longlong.h +++ b/include/wx/longlong.h @@ -1077,6 +1077,12 @@ WXDLLIMPEXP_BASE class wxTextInputStream &operator>>(class wxTextInputStream &st #if wxUSE_LONGLONG_NATIVE +// VC6 is known to not have __int64 specializations of numeric_limits<> in its +// anyhow so don't bother including it, especially as it results in +// tons of warnings because the standard header itself uses obsolete template +// specialization syntax. +#ifndef __VISUALC6__ + #include namespace std @@ -1094,6 +1100,8 @@ template<> class numeric_limits } // namespace std +#endif // !VC6 + #endif // wxUSE_LONGLONG_NATIVE #endif // wxUSE_LONGLONG