From ce3bc006e7e517758ffa5487c6d7e78aa0abb0cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Mon, 27 Feb 2017 14:00:06 +0100 Subject: [PATCH] fix build with -DMAXTIME=123 --- lib/tokenize.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tokenize.h b/lib/tokenize.h index 10673cfad..1f3370d1e 100644 --- a/lib/tokenize.h +++ b/lib/tokenize.h @@ -794,10 +794,11 @@ public: */ static const Token * startOfExecutableScope(const Token * tok); - static bool isMaxTime() { #ifdef MAXTIME + bool isMaxTime() const { return (std::time(0) > maxtime); #else + static bool isMaxTime() { return false; #endif }