From f48eb4366b0aaa0928fda9b035b902d1c3ebfd30 Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 7 Feb 2017 22:12:11 -0500 Subject: [PATCH] Check if a preprocessor variable is defined before use. Clang complains about this with -Wundef on. --- source/hp/dof_handler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/hp/dof_handler.cc b/source/hp/dof_handler.cc index 65833da8bb..788ae35d0a 100644 --- a/source/hp/dof_handler.cc +++ b/source/hp/dof_handler.cc @@ -39,7 +39,7 @@ DEAL_II_NAMESPACE_OPEN // distinguish between dealii::DoFHandler and dealii::hp::DoFHandler. // Plus it makes code in dof_handler.cc easier to read. // Requires C++11 support which is in Visual Studio 2013 and newer. -#if _MSC_VER >= 1800 +#if defined(_MSC_VER) && (_MSC_VER >= 1800) template using HpDoFHandler = ::dealii::hp::DoFHandler; #else // When using older Visual Studio or a different compiler just fall back. -- 2.39.5