# HG changeset patch # User Sam Lantinga # Date 1150781744 0 # Node ID 7bea26ad3130999e4a8d0f4733fd5ab2b49945c2 # Parent 0e44c6f90b95030cf55d0841423037c85b09582f I think this fixes bug #244 diff -r 0e44c6f90b95 -r 7bea26ad3130 src/cpuinfo/SDL_cpuinfo.c --- a/src/cpuinfo/SDL_cpuinfo.c Tue Jun 20 05:25:04 2006 +0000 +++ b/src/cpuinfo/SDL_cpuinfo.c Tue Jun 20 05:35:44 2006 +0000 @@ -109,7 +109,7 @@ mov has_CPUID,1 ; We have CPUID support done: } -#elif defined(__sun) && defined(__x86) +#elif defined(__sun) && defined(__i386) __asm ( " pushfl \n" " popl %eax \n" @@ -175,7 +175,7 @@ mov features, edx done: } -#elif defined(__sun) && (defined(__x86) || defined(__amd64)) +#elif defined(__sun) && (defined(__i386) || defined(__amd64)) __asm( " movl %ebx,%edi\n" " xorl %eax,%eax \n"