Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tommy Webb
Tor Browser
Commits
325705cd
Commit
325705cd
authored
12 years ago
by
Robert Longson
Browse files
Options
Downloads
Patches
Plain Diff
Bug 818391 - Add std::abs(long long) for VC9 since it lacks this C++11 signature. r=mats,jlebar
parent
9c310a2c
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xpcom/string/public/nsAlgorithm.h
+11
-0
11 additions, 0 deletions
xpcom/string/public/nsAlgorithm.h
with
11 additions
and
0 deletions
xpcom/string/public/nsAlgorithm.h
+
11
−
0
View file @
325705cd
...
...
@@ -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
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment