python-werkzeug: bump to version 0.11.15
[buildroot-gz.git] / package / opencv / 0003-types_c.h-Fix-compiling-VFP-assembler-code.patch
blob85a23a0740308b15ad67c43dbce807bd9b22ea8a
1 From 18c868c47307b786d1bea729dccaad7f8d696cb7 Mon Sep 17 00:00:00 2001
2 From: Bernd Kuhls <bernd.kuhls@t-online.de>
3 Date: Tue, 6 Sep 2016 11:49:00 +0200
4 Subject: [PATCH 1/1] types_c.h: Fix compiling VFP assembler code
6 Replace asm by __asm__ according to
7 https://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html#Alternate-Keywords
8 as suggested by Arnout Vandecappelle:
9 http://lists.busybox.net/pipermail/buildroot/2016-September/171491.html
11 to fix build errors in ffmpeg with opencv2 support detected by
12 buildroot autobuilders:
13 http://autobuild.buildroot.net/results/c32/c32a21240a9933796ee850349a62ff3c2314f25c/build-end.log
15 Patch sent upstream: https://github.com/opencv/opencv/pull/7242
17 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
18 ---
19 modules/core/include/opencv2/core/types_c.h | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 diff --git a/modules/core/include/opencv2/core/types_c.h b/modules/core/include/opencv2/core/types_c.h
23 index c21cd2c..771715d 100644
24 --- a/modules/core/include/opencv2/core/types_c.h
25 +++ b/modules/core/include/opencv2/core/types_c.h
26 @@ -318,7 +318,7 @@ enum {
27 int res; \
28 float temp; \
29 (void)temp; \
30 - asm(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \
31 + __asm__(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \
32 return res;
33 // 2. version for double
34 #ifdef __clang__
35 --
36 2.9.3