diff options
| author | Phil Nash | 2017-04-25 08:43:14 +0100 |
|---|---|---|
| committer | Phil Nash | 2017-04-25 08:43:14 +0100 |
| commit | 211b3303465e53baccf3c020276df4d2de02a65d (patch) | |
| tree | 89d466f27548de9ff476c4f658fcf4aecaac6024 /include | |
| parent | d36fe214a67d593aaa358cfbbce64709b5f91c66 (diff) | |
| download | catch3-211b3303465e53baccf3c020276df4d2de02a65d.tar.gz | |
Don’t unconditionally #include <stdint.h> (as earlier MSVC don’t have it)
Diffstat (limited to 'include')
| -rw-r--r-- | include/internal/catch_timer.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/internal/catch_timer.h b/include/internal/catch_timer.h index fb61846c..607aa6bb 100644 --- a/include/internal/catch_timer.h +++ b/include/internal/catch_timer.h @@ -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 ) {} |