[Pkg-opencl-devel] Bug#806965: oclgrind: FTBFS on ppc64el -- conflict with altivec keyword bool

Andreas Beckmann anbe at debian.org
Tue Dec 8 19:09:58 UTC 2015


On 2015-12-08 20:00, J Price wrote:
>> I don't really like the idea of manipulating unrelated defines in
>> headers ...
> 
> OK, so how about if I do this from the .cpp files instead? e.g.

That would be fine, since it's limited to oclgrind. Doing it in a
(public) header could "contaminate" other projects that include the
header, also it may depend on the order of the includes whether
compilation fails or succeeds.

> 
> (in foo.cpp)
> #include <CL/cl.h>
#ifdef FOO
> #undef vector
> #undef bool
> #undef pixel
#endif



More information about the Pkg-opencl-devel mailing list