On 8 December 2015 at 13:43, Fernando Seiti Furusato <ferse...@br.ibm.com> wrote: > What helped a lot with vector is that it is being used to define a type > in a header, unlike bool which is used everywhere. > Also the first error is because it is used in an enum in a gcc header. > (/usr/include/c++/5/bits/cpp_type_traits.h)
Since bool is just a macro, can't we just #undef it after including altivec.h? I was envisioning something like this inside cl_platform.h (around line 334): #include <altivec.h> #undef vector #undef bool #undef pixel typedef __vector unsigned char __cl_uchar16; // etc James