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