Don’t unconditionally #include <stdint.h> (as earlier MSVC don’t have it)

This commit is contained in:
Phil Nash 2017-04-25 08:43:14 +01:00
parent d36fe214a6
commit 211b330346

View File

@ -10,15 +10,20 @@
#include "catch_platform.h" #include "catch_platform.h"
#include <stdint.h> #ifdef _MSC_VER
namespace Catch { namespace Catch {
#ifdef _MSC_VER
typedef unsigned long long UInt64; typedef unsigned long long UInt64;
}
#else #else
#include <stdint.h>
namespace Catch {
typedef uint64_t UInt64; typedef uint64_t UInt64;
}
#endif #endif
namespace Catch {
class Timer { class Timer {
public: public:
Timer() : m_ticks( 0 ) {} Timer() : m_ticks( 0 ) {}