- Fix build with altivec: opencv-altivec-vector.patch (forwarded request 214130 from k0da) OBS-URL: https://build.opensuse.org/request/show/214181 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opencv?expand=0&rev=48
26 lines
1.3 KiB
Diff
26 lines
1.3 KiB
Diff
Index: opencv-2.4.7/3rdparty/include/opencl/1.2/CL/cl_platform.h
|
|
===================================================================
|
|
--- opencv-2.4.7.orig/3rdparty/include/opencl/1.2/CL/cl_platform.h
|
|
+++ opencv-2.4.7/3rdparty/include/opencl/1.2/CL/cl_platform.h
|
|
@@ -332,13 +332,13 @@ typedef unsigned int cl_GLenum;
|
|
/* Define basic vector types */
|
|
#if defined( __VEC__ )
|
|
#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;
|
|
- typedef vector unsigned short __cl_ushort8;
|
|
- typedef vector signed short __cl_short8;
|
|
- typedef vector unsigned int __cl_uint4;
|
|
- typedef vector signed int __cl_int4;
|
|
- typedef vector float __cl_float4;
|
|
+ typedef __vector unsigned char __cl_uchar16;
|
|
+ typedef __vector signed char __cl_char16;
|
|
+ typedef __vector unsigned short __cl_ushort8;
|
|
+ typedef __vector signed short __cl_short8;
|
|
+ typedef __vector unsigned int __cl_uint4;
|
|
+ typedef __vector signed int __cl_int4;
|
|
+ typedef __vector float __cl_float4;
|
|
#define __CL_UCHAR16__ 1
|
|
#define __CL_CHAR16__ 1
|
|
#define __CL_USHORT8__ 1
|