Skip to content

Commit

Permalink
Apply Debian patch: altivec.patch
Browse files Browse the repository at this point in the history
Author: Andreas Beckmann <anbe@debian.org>
Description: get rid of the conflicting altivec.h bool and vector macros
  • Loading branch information
franz committed Mar 5, 2018
1 parent 02ca2c6 commit 75d98ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions fix-include/CL/cl_platform.h
Expand Up @@ -50,3 +50,12 @@
#define AVAILABLE_MAC_OS_X_VERSION_10_7_AND_LATER
#undef AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER
#define AVAILABLE_MAC_OS_X_VERSION_10_8_AND_LATER

#if defined(__VEC__) || defined(__ALTIVEC__)
// altivec.h defines conflicting macros
#ifdef __cplusplus
#undef vector
#undef pixel
#undef bool
#endif
#endif

0 comments on commit 75d98ec

Please sign in to comment.