Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorPhil Nash2017-04-25 08:43:14 +0100
committerPhil Nash2017-04-25 08:43:14 +0100
commit211b3303465e53baccf3c020276df4d2de02a65d (patch)
tree89d466f27548de9ff476c4f658fcf4aecaac6024 /include
parentd36fe214a67d593aaa358cfbbce64709b5f91c66 (diff)
downloadcatch3-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.h9
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 ) {}