[Libclc-dev] [PATCH] Don't include <stddef.h>

Jean-Sébastien Pédron dumbbell at FreeBSD.org
Fri Oct 17 15:41:23 PDT 2014


On 18.10.2014 00:34, Jeroen Ketema wrote:
> This means we loose support for ptrdiff_t (typedef __PTRDIFF_TYPE__ 
> ptrdiff_t;), which is an OpenCL required type.

I'll add that type.

> Moreover, we loose NULL in this way. Although NULL is not strictly 
> required, it’s useful to have around.

Are you fine with the following #define?

#define NULL ((void*)0)

-- 
Jean-Sébastien Pédron

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/libclc-dev/attachments/20141018/de604bf7/attachment.sig>


More information about the Libclc-dev mailing list