Commit 39d44ae2 authored by David Reid's avatar David Reid

Fix compilation error when compiling with -std=c99.

parent f07b84ce
...@@ -2410,7 +2410,7 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSignWave, mal_uint64 count, float* ...@@ -2410,7 +2410,7 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSignWave, mal_uint64 count, float*
#elif defined(__GNUC__) || defined(__clang__) #elif defined(__GNUC__) || defined(__clang__)
static MAL_INLINE void mal_cpuid(int info[4], int fid) static MAL_INLINE void mal_cpuid(int info[4], int fid)
{ {
asm ( __asm__ (
"movl %[fid], %%eax\n\t" "movl %[fid], %%eax\n\t"
"cpuid\n\t" "cpuid\n\t"
"movl %%eax, %[info0]\n\t" "movl %%eax, %[info0]\n\t"
...@@ -2431,7 +2431,7 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSignWave, mal_uint64 count, float* ...@@ -2431,7 +2431,7 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSignWave, mal_uint64 count, float*
unsigned int hi; unsigned int hi;
unsigned int lo; unsigned int lo;
asm ( __asm__ (
"movl %[reg], %%ecx\n\t" "movl %[reg], %%ecx\n\t"
"xgetbv\n\t" "xgetbv\n\t"
"movl %%eax, %[lo]\n\t" "movl %%eax, %[lo]\n\t"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment