[PATCH] D78186: [flang] Don't check __cplusplus value with MSVC.
مهدي شينون (Mehdi Chinoune) via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 14:32:59 PDT 2020
ChinouneMehdi updated this revision to Diff 261355.
ChinouneMehdi retitled this revision from "[flang] Remove some unnecessary checks." to "[flang] Don't check __cplusplus value with MSVC.".
ChinouneMehdi added a comment.
Preserve the original code.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78186/new/
https://reviews.llvm.org/D78186
Files:
flang/include/flang/Common/idioms.h
Index: flang/include/flang/Common/idioms.h
===================================================================
--- flang/include/flang/Common/idioms.h
+++ flang/include/flang/Common/idioms.h
@@ -16,7 +16,7 @@
#ifndef __cplusplus
#error this is a C++ program
#endif
-#if __cplusplus < 201703L
+#if __cplusplus < 201703L && !_MSVC_VER
#error this is a C++17 program
#endif
#if !__clang__ && defined __GNUC__ && __GNUC__ < 7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78186.261355.patch
Type: text/x-patch
Size: 428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200430/fc454f80/attachment.bin>
More information about the llvm-commits
mailing list