From 25020f267236ab8e715fabbbdea5b81e39a01120 Mon Sep 17 00:00:00 2001 From: James Clarke Date: Fri, 23 Jun 2017 15:28:09 +0100 Subject: [PATCH] fast_math.hpp: Use __asm__ rather than asm; fixes including with -std=c99 --- modules/core/include/opencv2/core/fast_math.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/fast_math.hpp b/modules/core/include/opencv2/core/fast_math.hpp index aeeb5e7c51..7858d40492 100644 --- a/modules/core/include/opencv2/core/fast_math.hpp +++ b/modules/core/include/opencv2/core/fast_math.hpp @@ -80,7 +80,7 @@ int res; \ float temp; \ (void)temp; \ - asm(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \ + __asm__(_asm_string : [res] "=r" (res), [temp] "=w" (temp) : [value] "w" (_value)); \ return res // 2. version for double #ifdef __clang__