[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 12:53:52 PDT 2014


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;
 
 typedef unsigned char uchar;
 typedef unsigned short ushort;





More information about the cfe-commits mailing list