[libclc] 137/291: clctypes.h: Don't rely on stddef.h for size_t and ptrdiff_t

Andreas Beckmann anbe at moszumanska.debian.org
Tue Sep 8 10:53:42 UTC 2015


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository libclc.

commit 4cf021ae67b6ea8cfd42aa76ce6f5e1c329e145a
Author: Aaron Watry <awatry at gmail.com>
Date:   Mon Jun 16 19:53:52 2014 +0000

    clctypes.h: Don't rely on stddef.h for size_t and ptrdiff_t
    
    git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@211044 91177308-0d34-0410-b5e6-96231b3b80d8
---
 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 ca1372d..9271ee6 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git



More information about the Pkg-opencl-commits mailing list