From b825cece2b12556eca924f3940243fb5b765345e Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 15 Jun 2016 00:28:15 +0000 Subject: [PATCH] Headers: tweak for MSVC[<1800] Earlier versions of MSVC did not include inttypes.h. Ensure that we dont try to include_next on those releases. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272741 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Headers/inttypes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Headers/inttypes.h b/lib/Headers/inttypes.h index 3d59d141de..220057e48f 100644 --- a/lib/Headers/inttypes.h +++ b/lib/Headers/inttypes.h @@ -23,6 +23,10 @@ #ifndef __CLANG_INTTYPES_H #define __CLANG_INTTYPES_H +#if defined(_MSC_VER) && _MSC_VER < 1800 +#error MSVC <= 11.0 does not have inttypes.h +#endif + #include_next #if defined(_MSC_VER) && _MSC_VER < 1900 -- 2.40.0