mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 15:26:11 +01:00
Use (locally defined) UInt64 instead of uint64_t
- typedefs long long for MSVC - typedefs uint64_t otherwise Should probably do finer grained compiler checking - but this should at least be better than what was there before
This commit is contained in:
parent
b591cb9a03
commit
2bf30e9e5a
@ -10,13 +10,14 @@
|
||||
|
||||
#include "catch_platform.h"
|
||||
|
||||
#ifdef CATCH_PLATFORM_WINDOWS
|
||||
typedef unsigned long long uint64_t;
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
namespace Catch {
|
||||
#ifdef _MSC_VER
|
||||
typedef unsigned long long UInt64;
|
||||
#else
|
||||
typedef uint64_t UInt64;
|
||||
#endif
|
||||
|
||||
class Timer {
|
||||
public:
|
||||
@ -27,7 +28,7 @@ namespace Catch {
|
||||
double getElapsedSeconds() const;
|
||||
|
||||
private:
|
||||
uint64_t m_ticks;
|
||||
UInt64 m_ticks;
|
||||
};
|
||||
|
||||
} // namespace Catch
|
||||
|
Loading…
Reference in New Issue
Block a user