[libclc] r211044 - clctypes.h: Don't rely on stddef.h for size_t and ptrdiff_t

Aaron Watry awatry at gmail.com
Mon Jun 16 13:25:46 PDT 2014


Because I forgot that I had been carrying a patch of Tom's in my local
clone and just committed it by mistake.  I'll revert it.

The patch was originally sent by Tom at:
http://www.pcc.me.uk/pipermail/libclc-dev/2014-March/000267.html

It fixed a broken build issue that I was having at the time.  When I
just reverted it in my local tree, I no longer experienced the
original error that this fixed.  I knew that the commit log looked
wrong a few minutes ago, but I didn't spot what the issue was.

--Aaron

On Mon, Jun 16, 2014 at 3:06 PM, Aaron Ballman <aaron at aaronballman.com> wrote:
> On Mon, Jun 16, 2014 at 3:53 PM, Aaron Watry <awatry at gmail.com> wrote:
>> Author: awatry
>> Date: Mon Jun 16 14:53:52 2014
>> New Revision: 211044
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=211044&view=rev
>> Log:
>> clctypes.h: Don't rely on stddef.h for size_t and ptrdiff_t
>>
>> Modified:
>>     libclc/trunk/generic/include/clc/clctypes.h
>>
>> Modified: libclc/trunk/generic/include/clc/clctypes.h
>> URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/clctypes.h?rev=211044&r1=211043&r2=211044&view=diff
>> ==============================================================================
>> --- libclc/trunk/generic/include/clc/clctypes.h (original)
>> +++ libclc/trunk/generic/include/clc/clctypes.h Mon Jun 16 14:53:52 2014
>> @@ -1,6 +1,7 @@
>>  /* 6.1.1 Built-in Scalar Data Types */
>>
>> -#include <stddef.h>
>> +typedef __SIZE_TYPE__ size_t;
>> +typedef __PTRDIFF_TYPE__ ptrdiff_t;
>
> Out of curiosity, why is this change necessary?
>
> ~Aaron
>
>>
>>  typedef unsigned char uchar;
>>  typedef unsigned short ushort;
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list