r272741 - Headers: tweak for MSVC[<1800]
Nico Weber via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 16 01:40:23 PDT 2016
Maybe this should use the marketing name ("before msvc 2013")? People might
be more familiar with that.
On Jun 15, 2016 2:34 AM, "Saleem Abdulrasool via cfe-commits" <
cfe-commits at lists.llvm.org> wrote:
> 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
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160616/d84f4a09/attachment.html>
More information about the cfe-commits
mailing list