fosphor/cl_compat: Fix goofs with calling convention

Doesn't matter on linux/osx because CL_API is nothing, but on Win32, it
changes things.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2015-05-20 10:03:56 +02:00
parent f33ebdd28b
commit 7944d0d976
2 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@
#define ALT_WRAP(rtype, fn, arg_list, arg_call) \
\
static CL_API_ENTRY rtype CL_API_CALL (* fn ## _icd) arg_list = NULL; \
static CL_API_ENTRY rtype (CL_API_CALL * fn ## _icd) arg_list = NULL; \
static rtype fn ## _alt arg_list; \
\
CL_API_ENTRY rtype CL_API_CALL fn arg_list \

View File

@ -57,7 +57,7 @@ typedef struct _cl_image_desc {
cl_mem buffer;
} cl_image_desc;
cl_mem
cl_mem CL_API_CALL
clCreateFromGLTexture(cl_context context,
cl_mem_flags flags,
GLenum texture_target,
@ -65,7 +65,7 @@ clCreateFromGLTexture(cl_context context,
GLuint texture,
cl_int *errcode_ret);
cl_mem
cl_mem CL_API_CALL
clCreateImage(cl_context context,
cl_mem_flags flags,
const cl_image_format *image_format,
@ -73,7 +73,7 @@ clCreateImage(cl_context context,
void *host_ptr,
cl_int *errcode_ret);
cl_int
cl_int CL_API_CALL
clEnqueueFillBuffer(cl_command_queue command_queue,
cl_mem buffer,
const void *pattern,
@ -84,7 +84,7 @@ clEnqueueFillBuffer(cl_command_queue command_queue,
const cl_event *event_wait_list,
cl_event *event);
cl_int
cl_int CL_API_CALL
clEnqueueFillImage(cl_command_queue command_queue,
cl_mem image,
const void *fill_color,