diff options
author | Wade Walker <[email protected]> | 2015-11-01 14:13:37 -0600 |
---|---|---|
committer | Wade Walker <[email protected]> | 2015-11-08 14:05:35 -0600 |
commit | ad95421312871694ec8009d9f92089c79b9f8607 (patch) | |
tree | 93a26b70dec0b2fe4489acebad4117ea80bf6279 /make/stub_includes/CL12/cl.h | |
parent | 215901444d8fd98a14f190e6aa10c17b84ee4b7d (diff) |
Fix compilation of OpenCL 2.x headers on OS X
The include files were getting the OS X framework files from OpenCL/*.h,
instead of the local stub files from CL/*.h, which meant that OpenCL
2.x-related things were undefined. Changed OpenCL 2.x stub files to
refer to local .h files only. Maybe later change 1.x also, but leaving
it for now to minimize disruption to working code.
Diffstat (limited to 'make/stub_includes/CL12/cl.h')
-rw-r--r-- | make/stub_includes/CL12/cl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/make/stub_includes/CL12/cl.h b/make/stub_includes/CL12/cl.h index c2969b2c..6ac4a5c4 100644 --- a/make/stub_includes/CL12/cl.h +++ b/make/stub_includes/CL12/cl.h @@ -25,6 +25,7 @@ #define __OPENCL_CL_H #ifdef __APPLE__ +#pragma GCC diagnostic ignored "-Wignored-attributes" #include <OpenCL/cl_platform.h> #else #include <CL/cl_platform.h> |