diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-03-02 06:40:25 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-03-02 06:40:28 +1100 |
commit | f7f216472597f4512c0e18a4bae353ae89a3bc11 (patch) | |
tree | 2ab03c713a2bc632494048d9d96119b7292061d4 | |
parent | 61e7dfa8bbdfdd3ad447d9fb8c21b769cc96ca25 (diff) | |
download | flac-f7f216472597f4512c0e18a4bae353ae89a3bc11.tar.gz |
cpu.c: Fix LLVM compile
Switch from `asm` to `__asm__` which is better supported.
Patch-from: Olivier Tristan <o.tristan@uvi.net>
-rw-r--r-- | src/libFLAC/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |