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:
Frédéric Bonnard 2020-05-11 15:57:20 +02:00 committed by Marge Bot
parent 54d7907c27
commit cd7acd09b9
1 changed files with 5 additions and 0 deletions

View File

@ -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>