diff src/cpuinfo/SDL_cpuinfo.c @ 1442:e3242177fe4a

Updated OS/2 build, yay!
author Sam Lantinga <slouken@libsdl.org>
date Sun, 26 Feb 2006 19:30:21 +0000
parents ef9a9064bff2
children dc6b59e925a2
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c	Sun Feb 26 13:42:00 2006 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Sun Feb 26 19:30:21 2006 +0000
@@ -96,7 +96,7 @@
 	:
 	: "%rax", "%rcx"
 	);
-#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
+#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
 	__asm {
         pushfd                      ; Get original EFLAGS
         pop     eax
@@ -165,7 +165,7 @@
 	:
 	: "%eax", "%ecx", "%edx", "%edi"
 	);
-#elif defined(_MSC_VER)  && (defined(_M_IX86) || defined(_X86_))
+#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
 	__asm {
         xor     eax, eax            ; Set up for CPUID instruction
         cpuid                       ; Get and save vendor ID
@@ -217,7 +217,7 @@
 	:
 	: "%eax", "%ecx", "%edx", "%edi"
 	);
-#elif defined(_MSC_VER)  && (defined(_M_IX86) || defined(_X86_))
+#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
 	__asm {
         mov     eax,80000000h       ; Query for extended functions
         cpuid                       ; Get extended function limit