I think this fixes bug #244
authorSam Lantinga <slouken@libsdl.org>
Tue, 20 Jun 2006 05:35:44 +0000
changeset 1864 7bea26ad3130
parent 1863 0e44c6f90b95
child 1865 d688ac43a76b
I think this fixes bug #244
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"