clover: Fix types collision between c++ and altivec
For that, we undefine bool, vector, pixel as advised by altivec.h in the specific case that defines them. Cc: mesa-stable Signed-off-by: Frédéric Bonnard <frediz@debian.org> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Reviewed-by: Dylan Baker <dylan@pnwbakers.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4948>
This commit is contained in:
parent
54d7907c27
commit
cd7acd09b9
|
@ -24,6 +24,11 @@
|
|||
#define CLOVER_CORE_ERROR_HPP
|
||||
|
||||
#include "CL/cl.h"
|
||||
#if defined(__ALTIVEC__) && !defined(__APPLE_ALTIVEC__)
|
||||
#undef vector
|
||||
#undef pixel
|
||||
#undef bool
|
||||
#endif
|
||||
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
|
Loading…
Reference in New Issue