I think this fixes bug #244
authorSam Lantinga <slouken@libsdl.org>
Tue, 20 Jun 2006 05:35:44 +0000
changeset 18647bea26ad3130
parent 1863 0e44c6f90b95
child 1865 d688ac43a76b
I think this fixes bug #244
src/cpuinfo/SDL_cpuinfo.c
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Tue Jun 20 05:25:04 2006 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Tue Jun 20 05:35:44 2006 +0000
     1.3 @@ -109,7 +109,7 @@
     1.4          mov     has_CPUID,1         ; We have CPUID support
     1.5  done:
     1.6  	}
     1.7 -#elif defined(__sun) && defined(__x86)
     1.8 +#elif defined(__sun) && defined(__i386)
     1.9  	__asm (
    1.10  "       pushfl                 \n"
    1.11  "	popl    %eax           \n"
    1.12 @@ -175,7 +175,7 @@
    1.13          mov     features, edx
    1.14  done:
    1.15  	}
    1.16 -#elif defined(__sun) && (defined(__x86) || defined(__amd64))
    1.17 +#elif defined(__sun) && (defined(__i386) || defined(__amd64))
    1.18  	    __asm(
    1.19  "        movl    %ebx,%edi\n"
    1.20  "        xorl    %eax,%eax         \n"