Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed compile error with gcc -std=c99
  • Loading branch information
slouken committed Mar 7, 2017
1 parent 20c846e commit c1802ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -257,7 +257,7 @@ CPU_calcCPUIDFeatures(void)
if (c & 0x08000000) {
/* Call xgetbv to see if YMM register state is saved */
#if defined(__GNUC__) && (defined(i386) || defined(__x86_64__))
asm(".byte 0x0f, 0x01, 0xd0" : "=a" (a) : "c" (0) : "%edx");
__asm__(".byte 0x0f, 0x01, 0xd0" : "=a" (a) : "c" (0) : "%edx");
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64)) && (_MSC_FULL_VER >= 160040219) /* VS2010 SP1 */
a = (int)_xgetbv(0);
#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
Expand Down

0 comments on commit c1802ef

Please sign in to comment.