diff options
author | Michael Bien <[email protected]> | 2009-09-29 21:50:26 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-09-29 21:50:26 +0200 |
commit | 5db5f6ac97894bcb9804e4bfcc4607cfdae637a6 (patch) | |
tree | 4e29882d541964f102d0343fd5a4819236540cf5 /resources | |
parent | 842f684ed4e900fbc54dd00e92c58a0fe2d8ce04 (diff) |
fixed stdinit header, modified test to print out CL platform info.
Diffstat (limited to 'resources')
-rw-r--r-- | resources/CL/stdint.h | 6 | ||||
-rw-r--r-- | resources/clImplCustomCode.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/resources/CL/stdint.h b/resources/CL/stdint.h index a9dd63a4..8fd0d29f 100644 --- a/resources/CL/stdint.h +++ b/resources/CL/stdint.h @@ -15,10 +15,10 @@ typedef unsigned short uint16_t; typedef unsigned int uint32_t; - typedef int intptr_t; - typedef unsigned int uintptr_t; + typedef long intptr_t; + typedef unsigned long uintptr_t; - typedef unsigned int size_t; + typedef unsigned long size_t; // FIXME workaround prevent re-defininition of int16_t in types.h # define __int8_t_defined diff --git a/resources/clImplCustomCode.java b/resources/clImplCustomCode.java index 4b1d50c3..2fa48d64 100644 --- a/resources/clImplCustomCode.java +++ b/resources/clImplCustomCode.java @@ -2,13 +2,13 @@ public long clCreateContext(IntBuffer properties, int arg1, long[] devices, CreateContextCallback cb, Object userData, IntBuffer errcode_ret) { return this.clCreateContext0(properties, arg1, devices, cb, null, errcode_ret, 0); } - public native long clCreateContext0(IntBuffer properties, int size, long[] devices, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret, int size2); + private native long clCreateContext0(IntBuffer properties, int size, long[] devices, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret, int size2); public long clCreateContextFromType(IntBuffer arg0, long device_type, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret) { return this.clCreateContextFromType0(arg0, 0, device_type, pfn_notify, null, errcode_ret, 0); } - public native long clCreateContextFromType0(IntBuffer arg0, int size, long device_type, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret, int size2); + private native long clCreateContextFromType0(IntBuffer arg0, int size, long device_type, CreateContextCallback pfn_notify, Object userData, IntBuffer errcode_ret, int size2);
\ No newline at end of file |