catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Don’t unconditionally #include <stdint.h> (as earlier MSVC don’t have it)
- Commit
211b3303465e53baccf3c020276df4d2de02a65d- Author
- Phil Nash ·
- Parents
d36fe214a67d
Changes
include/internal/catch_timer.h | 9 +++++++-- 1 file 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 ) {}