Replace #pragma once with #ifndef #define #endif logic because #pragma once does not work cleanly on OSX

This commit is contained in:
jsteube
2016-09-06 18:44:05 +02:00
parent c3fe5b40b1
commit e4bf86dcbe
31 changed files with 123 additions and 32 deletions
+4 -1
View File
@@ -5,7 +5,8 @@
* License.....: MIT
*/
#pragma once
#ifndef _EXT_OPENCL_H
#define _EXT_OPENCL_H
#define CL_PLATFORMS_MAX 16
@@ -168,3 +169,5 @@ cl_int hc_clReleaseMemObject (OCL_PTR *ocl, cl_mem mem);
cl_int hc_clReleaseProgram (OCL_PTR *ocl, cl_program program);
cl_int hc_clSetKernelArg (OCL_PTR *ocl, cl_kernel kernel, cl_uint arg_index, size_t arg_size, const void *arg_value);
cl_int hc_clWaitForEvents (OCL_PTR *ocl, cl_uint num_events, const cl_event *event_list);
#endif // _EXT_OPENCL_H