Only check if constexpr and noexcept are defined with Visual Studio < 2015

This commit is contained in:
Bertrand Bellenot 2016-08-22 12:10:53 +02:00 committed by sftnight
parent dda75d5636
commit fd5177dfe6
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
#include <exception>
#if defined(_MSC_VER) && (_MSC_VER <= 1900) && !defined(noexcept)
#if defined(_MSC_VER) && (_MSC_VER < 1900) && !defined(noexcept)
#define noexcept
#endif

View File

@ -14,7 +14,7 @@
#include "clang/AST/DeclVisitor.h"
#if defined(_MSC_VER) && (_MSC_VER <= 1900) && !defined(constexpr)
#if defined(_MSC_VER) && (_MSC_VER < 1900) && !defined(constexpr)
#define constexpr const
#endif