diff --git a/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c b/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c index 03aeaae..de71821 100644 --- a/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c +++ b/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.c @@ -29,7 +29,7 @@ ////////////////////////////////////////////////////////////////////////// // function pointer wrappers to hide runtime linking -#define DECLARECLFUNC( rettype, name, params ) typedef CL_API_ENTRY rettype\ +#define DECLARECLFUNC(rettype, name, params) typedef CL_API_ENTRY rettype\ (CL_API_CALL *name##Proc)params;\ name##Proc name##_Dynamic = 0;\ \ @@ -189,8 +189,7 @@ DECLARECLFUNC(cl_sampler, clCreateSampler, (cl_context context, filter_mode, errcode_ret); } -DECLARECLFUNC(cl_int, clReleaseSampler, (cl_sampler sampler)) -{ +DECLARECLFUNC(cl_int, clReleaseSampler, (cl_sampler sampler)) { return clReleaseSampler_Dynamic(sampler); } @@ -240,16 +239,16 @@ DECLARECLFUNC(cl_mem, clCreateFromGLBuffer, (cl_context context, #include #define CHECKEDIMPORT(name) name##_Dynamic = \ - (name##Proc)GetProcAddress( opencl_dll_handle, #name ); \ - if ( name##_Dynamic == 0 ) return 0; + (name##Proc)GetProcAddress(opencl_dll_handle, #name); \ + if (name##_Dynamic == 0) return 0; #else #include #define CHECKEDIMPORT(name) name##_Dynamic = \ - (name##Proc)dlsym( opencl_dll_handle, #name ); \ - if ( name##_Dynamic == 0 ) return 0; + (name##Proc)dlsym(opencl_dll_handle, #name); \ + if (name##_Dynamic == 0) return 0; #endif diff --git a/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h b/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h index a1932a8..7fc4256 100644 --- a/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h +++ b/mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h @@ -30,7 +30,7 @@ #ifdef __cplusplus extern "C" { #endif - + int embb_mtapi_opencl_link_at_runtime(); #ifdef __cplusplus