Skip to content
Snippets Groups Projects
Commit 325705cd authored by Robert Longson's avatar Robert Longson
Browse files

Bug 818391 - Add std::abs(long long) for VC9 since it lacks this C++11 signature. r=mats,jlebar

parent 9c310a2c
No related merge requests found
......@@ -42,6 +42,17 @@ NS_MAX( const T& a, const T& b )
return a > b ? a : b;
}
#if defined(_MSC_VER) && (_MSC_VER < 1600)
namespace std {
inline
long long
abs( const long long& a )
{
return a < 0 ? -a : a;
}
}
#endif
namespace mozilla {
template <class T>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment