Skip to content

Commit

Permalink
pre-C++11 buildfix. Linux buildfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
xsacha committed May 1, 2013
1 parent e698af9 commit 5ea3777
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Core/HLE/sceKernelTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#endif

#include <time.h>
#include <sys/time.h>

#include "HLE.h"
#include "../MIPS/MIPS.h"
Expand Down
3 changes: 2 additions & 1 deletion ext/xbrz/xbrz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <cmath>
#include <cassert>
#include <algorithm>
#include <limits>

namespace
{
Expand All @@ -32,7 +33,7 @@ inline unsigned char getBlue (uint32_t val) { return getByte<1>(val); }
template <class T> inline
T abs(T value)
{
static_assert(std::is_signed<T>::value, "");
static_assert(std::numeric_limits<T>::is_signed, "abs performed on unsigned");
return value < 0 ? -value : value;
}

Expand Down

0 comments on commit 5ea3777

Please sign in to comment.