Skip to content

Commit c704518

Browse files
committed
types_c.h: Fix compiling VFP assembler code
Replace asm by __asm__ according to https://gcc.gnu.org/onlinedocs/gcc/Alternate-Keywords.html#Alternate-Keywords as suggested by Arnout Vandecappelle: http://lists.busybox.net/pipermail/buildroot/2016-September/171491.html to fix build errors in ffmpeg with opencv2 support detected by buildroot autobuilders: http://autobuild.buildroot.net/results/c32/c32a21240a9933796ee850349a62ff3c2314f25c/build-end.log Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
1 parent 0a30f64 commit c704518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/include/opencv2/core/types_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ enum {
318318
int res; \
319319
float temp; \
320320
(void)temp; \
321-
asm(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \
321+
__asm__(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \
322322
return res;
323323
// 2. version for double
324324
#ifdef __clang__

0 commit comments

Comments
 (0)