]> granicus.if.org Git - llvm/commitdiff
Don't explicitly check for C++14
authorJF Bastien <jfbastien@apple.com>
Wed, 14 Aug 2019 17:48:36 +0000 (17:48 +0000)
committerJF Bastien <jfbastien@apple.com>
Wed, 14 Aug 2019 17:48:36 +0000 (17:48 +0000)
MSVC is weird about __cplusplus. The check I added in D66195 confuses it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368889 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Compiler.h

index 4deac94f588529ae47191ef1205a1857af8f64f6..43114ad3a43c0e1e74fc38a94c3311dfd1803478 100644 (file)
 # define __has_builtin(x) 0
 #endif
 
-#ifdef __cplusplus
-# if __cplusplus < 201402L
-#  error Expected C++14 or later.
-# endif
-#endif
-
 /// \macro LLVM_GNUC_PREREQ
 /// Extend the default __GNUC_PREREQ even if glibc's features.h isn't
 /// available.