diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-11-21 23:03:34 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-11-21 23:03:34 +0300 |
commit | dd51ec592f51c3f5787fe7527a81aae93a0b4b7c (patch) | |
tree | bab38f567eebb518b8d880c0368ff6dc37c46d8b /extern/clew/include/clew.h | |
parent | 94d8e6fc6cdef926e930ca22a5c689193760c705 (diff) |
CLEW: Workaround compilation error on ppc64el
Something was conflicting here, causing C++ to consider bool as
a __vector(4) bool.
Diffstat (limited to 'extern/clew/include/clew.h')
-rw-r--r-- | extern/clew/include/clew.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extern/clew/include/clew.h b/extern/clew/include/clew.h index 1f79c12481b..2a583c81599 100644 --- a/extern/clew/include/clew.h +++ b/extern/clew/include/clew.h @@ -369,7 +369,8 @@ typedef unsigned int cl_GLenum; #endif /* Define basic vector types */ -#if defined( __VEC__ ) +/* WOrkaround for ppc64el platform: conflicts with bool from C++. */ +#if defined( __VEC__ ) && !(defined(__PPC64__) && defined(__LITTLE_ENDIAN__)) #include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */ typedef vector unsigned char __cl_uchar16; typedef vector signed char __cl_char16; |