Fixed compile error with gcc -std=c99
authorSam Lantinga <slouken@libsdl.org>
Mon, 06 Mar 2017 21:25:06 -0800
changeset 10931a364af650bf1
parent 10930 badc1f1411ef
child 10932 98b94b9e3e8c
Fixed compile error with gcc -std=c99
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Sat Mar 04 23:05:47 2017 +0100
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Mon Mar 06 21:25:06 2017 -0800
     1.3 @@ -257,7 +257,7 @@
     1.4                  if (c & 0x08000000) {
     1.5                      /* Call xgetbv to see if YMM register state is saved */
     1.6  #if defined(__GNUC__) && (defined(i386) || defined(__x86_64__))
     1.7 -                    asm(".byte 0x0f, 0x01, 0xd0" : "=a" (a) : "c" (0) : "%edx");
     1.8 +                    __asm__(".byte 0x0f, 0x01, 0xd0" : "=a" (a) : "c" (0) : "%edx");
     1.9  #elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64)) && (_MSC_FULL_VER >= 160040219) /* VS2010 SP1 */
    1.10                      a = (int)_xgetbv(0);
    1.11  #elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)