r272741 - Headers: tweak for MSVC[<1800]

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 14 17:28:15 PDT 2016


Author: compnerd
Date: Tue Jun 14 19:28:15 2016
New Revision: 272741

URL: http://llvm.org/viewvc/llvm-project?rev=272741&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/Headers/inttypes.h

Modified: cfe/trunk/lib/Headers/inttypes.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/inttypes.h?rev=272741&r1=272740&r2=272741&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/inttypes.h (original)
+++ cfe/trunk/lib/Headers/inttypes.h Tue Jun 14 19:28:15 2016
@@ -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 <inttypes.h>
 
 #if defined(_MSC_VER) && _MSC_VER < 1900




More information about the cfe-commits mailing list