X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/715efa4e254cf811bd14617d121b92fa82d64f8c..a7689c49fe02c0c065facf736ab28b19f5997b7c:/include/wx/longlong.h diff --git a/include/wx/longlong.h b/include/wx/longlong.h index 7c76d5f677..19c580110e 100644 --- a/include/wx/longlong.h +++ b/include/wx/longlong.h @@ -1097,15 +1097,15 @@ WXDLLIMPEXP_BASE class wxTextInputStream &operator>>(class wxTextInputStream &st namespace std { -template<> class numeric_limits - : public numeric_limits -{ -}; - -template<> class numeric_limits - : public numeric_limits -{ -}; +#ifdef __clang__ + // libstdc++ (used by Clang) uses struct for numeric_limits; unlike gcc, clang + // warns about this + template<> struct numeric_limits : public numeric_limits {}; + template<> struct numeric_limits : public numeric_limits {}; +#else + template<> class numeric_limits : public numeric_limits {}; + template<> class numeric_limits : public numeric_limits {}; +#endif } // namespace std