r272741 - Headers: tweak for MSVC[<1800]
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 16 17:31:03 PDT 2016
On Thu, Jun 16, 2016 at 1:40 AM, Nico Weber <thakis at chromium.org> wrote:
> Maybe this should use the marketing name ("before msvc 2013")? People
> might be more familiar with that.
>
Thats a pretty good idea actually. Ill make a follow up change.
> 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
>>
>
--
Saleem Abdulrasool
compnerd (at) compnerd (dot) org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160616/1b55e045/attachment.html>
More information about the cfe-commits
mailing list