[Libclc-dev] [PATCH] clctypes.h: Don't rely on stddef.h for size_t and ptrdiff_t
Tom Stellard
thomas.stellard at amd.com
Tue Mar 18 15:50:33 PDT 2014
---
generic/include/clc/clctypes.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/generic/include/clc/clctypes.h b/generic/include/clc/clctypes.h
index ca729f7..30c45f6 100644
--- a/generic/include/clc/clctypes.h
+++ b/generic/include/clc/clctypes.h
@@ -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;
--
1.8.1.4
More information about the Libclc-dev
mailing list