From be0646ea74ed068443c746061dacfa598ae06094 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Thu, 8 Mar 2018 08:36:14 +0100 Subject: [PATCH] Fix undefined macro _MSC_VER warning --- exprtk.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exprtk.hpp b/exprtk.hpp index aafb846..8358d89 100644 --- a/exprtk.hpp +++ b/exprtk.hpp @@ -2780,7 +2780,7 @@ namespace exprtk Note: The following 'awkward' conditional is due to various broken msvc compilers. */ - #if _MSC_VER == 1600 + #if defined(_MSC_VER) && (_MSC_VER == 1600) const bool within_range = !is_end(s_itr_ + 2) && !is_end(s_itr_ + 3) ; #else