Skip to content

Commit

Permalink
Fix msvc2012 build
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed Jun 29, 2014
1 parent ebf7ea5 commit ee7af21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/profiler.h
Expand Up @@ -22,9 +22,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,

#include "irrlichttypes.h"
#include <string>
#include <map>

#include "jthread/jmutex.h"
#include "jthread/jmutexautolock.h"
#include <map>
#include "util/timetaker.h"
#include "util/numeric.h" // paging()
#include "debug.h" // assert()
Expand Down Expand Up @@ -73,7 +74,7 @@ class Profiler
else{
/* No add shall have been used */
assert(n->second != -2);
n->second = (std::max)(n->second, 0) + 1;
n->second = MYMAX(n->second, 0) + 1;
}
}
{
Expand Down
1 change: 1 addition & 0 deletions src/util/string.h
Expand Up @@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <cstring>
#include <vector>
#include <sstream>
#include <cctype>

#define STRINGIFY(x) #x
#define TOSTRING(x) STRINGIFY(x)
Expand Down

0 comments on commit ee7af21

Please sign in to comment.