Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-11-21 23:03:34 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-11-21 23:03:34 +0300
commitdd51ec592f51c3f5787fe7527a81aae93a0b4b7c (patch)
treebab38f567eebb518b8d880c0368ff6dc37c46d8b /extern/clew
parent94d8e6fc6cdef926e930ca22a5c689193760c705 (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')
-rw-r--r--extern/clew/include/clew.h3
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;