Skip to content

Commit

Permalink
Don’t unconditionally #include <stdint.h> (as earlier MSVC don’t have…
Browse files Browse the repository at this point in the history
… it)
  • Loading branch information
philsquared committed Apr 25, 2017
1 parent d36fe21 commit 211b330
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions include/internal/catch_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,20 @@

#include "catch_platform.h"

#include <stdint.h>
#ifdef _MSC_VER

namespace Catch {
#ifdef _MSC_VER
typedef unsigned long long UInt64;
}
#else
#include <stdint.h>
namespace Catch {
typedef uint64_t UInt64;
}
#endif


namespace Catch {
class Timer {
public:
Timer() : m_ticks( 0 ) {}
Expand Down

0 comments on commit 211b330

Please sign in to comment.