From: David Wells Date: Wed, 8 Feb 2017 03:12:11 +0000 (-0500) Subject: Check if a preprocessor variable is defined before use. X-Git-Tag: v8.5.0-rc1~137^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f48eb4366b0aaa0928fda9b035b902d1c3ebfd30;p=dealii.git Check if a preprocessor variable is defined before use. Clang complains about this with -Wundef on. --- 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.