From f7f216472597f4512c0e18a4bae353ae89a3bc11 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Thu, 2 Mar 2017 06:40:25 +1100 Subject: [PATCH] cpu.c: Fix LLVM compile Switch from `asm` to `__asm__` which is better supported. Patch-from: Olivier Tristan --- src/libFLAC/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libFLAC/cpu.c b/src/libFLAC/cpu.c index 67a076d9..bf0708c8 100644 --- a/src/libFLAC/cpu.c +++ b/src/libFLAC/cpu.c @@ -81,7 +81,7 @@ cpu_xgetbv_x86(void) return (uint32_t)_xgetbv(0); #elif defined __GNUC__ uint32_t lo, hi; - asm volatile (".byte 0x0f, 0x01, 0xd0" : "=a"(lo), "=d"(hi) : "c" (0)); + __asm__ volatile (".byte 0x0f, 0x01, 0xd0" : "=a"(lo), "=d"(hi) : "c" (0)); return lo; #else return 0;