summaryrefslogtreecommitdiffstats
path: root/libcxx/include/cstdio
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-04-07 02:20:52 +0000
committerShoaib Meenai <smeenai@fb.com>2017-04-07 02:20:52 +0000
commit17af695f2b3d0e72844b2ccfc4fcf7ec6e40bbf2 (patch)
tree209cc86345f3c64696cf8d9cbac4582fc2412713 /libcxx/include/cstdio
parentdc8eb810dbc3ac333a1d5954e3616b9a1d54be0d (diff)
downloadbcm5719-llvm-17af695f2b3d0e72844b2ccfc4fcf7ec6e40bbf2.tar.gz
bcm5719-llvm-17af695f2b3d0e72844b2ccfc4fcf7ec6e40bbf2.zip
[libc++] Drop support for CRTs older than VS 2015
LLVM dropped support for Visual Studio versions older than 2015 quite some time ago, so I consider it safe to drop libc++'s support for older CRTs. The CRT in Visual Studio 2015 provides a lot of previously missing functions, so targeting it requires less special casing. Differential Revision: https://reviews.llvm.org/D31798 llvm-svn: 299743
Diffstat (limited to 'libcxx/include/cstdio')
-rw-r--r--libcxx/include/cstdio6
1 files changed, 1 insertions, 5 deletions
diff --git a/libcxx/include/cstdio b/libcxx/include/cstdio
index 35941ce3515..00b989fad7c 100644
--- a/libcxx/include/cstdio
+++ b/libcxx/include/cstdio
@@ -98,9 +98,6 @@ void perror(const char* s);
#include <__config>
#include <stdio.h>
-#if defined(_LIBCPP_MSVCRT)
-#include <crtversion.h>
-#endif
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
#pragma GCC system_header
@@ -156,8 +153,7 @@ using ::tmpnam;
#ifndef _LIBCPP_HAS_NO_STDIN
using ::getchar;
-#if _LIBCPP_STD_VER <= 11 && \
- (!defined(_VC_CRT_MAJOR_VERSION) || _VC_CRT_MAJOR_VERSION < 14)
+#if _LIBCPP_STD_VER <= 11 && !defined(_LIBCPP_MSVCRT)
using ::gets;
#endif
using ::scanf;
OpenPOWER on IntegriCloud