]> granicus.if.org Git - clang/commitdiff
Headers: tweak for MSVC[<1800]
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 15 Jun 2016 00:28:15 +0000 (00:28 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 15 Jun 2016 00:28:15 +0000 (00:28 +0000)
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

index 3d59d141deb2c23c344c6266b49b48fca757f4c9..220057e48fca4cd3b1da8d30bd9d5319802e45f7 100644 (file)
 #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 <inttypes.h>
 
 #if defined(_MSC_VER) && _MSC_VER < 1900