Fromm Frederich Munch: Fix CxxStdCompiledWith for Visual Studio, which requires C++14

This commit is contained in:
Bertrand Bellenot 2017-07-04 16:48:39 +02:00 committed by sftnight
parent 329de59275
commit 071bf231b7

View File

@ -60,9 +60,9 @@ namespace {
// I would claim that the check should be relaxed to:
#if __cplusplus > 201402L
return 17;
#elif __cplusplus > 201103L || (defined(LLVM_ON_WIN32) && _MSC_VER == 1910)
#elif __cplusplus > 201103L || (defined(LLVM_ON_WIN32) && _MSC_VER >= 1900)
return 14;
#elif __cplusplus >= 201103L || (defined(LLVM_ON_WIN32) && _MSC_VER == 1900)
#elif __cplusplus >= 201103L
return 11;
#else
#error "Unknown __cplusplus version"