src/cpuinfo/SDL_cpuinfo.c
changeset 1442 e3242177fe4a
parent 1426 ef9a9064bff2
child 1487 dc6b59e925a2
     1.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Sun Feb 26 13:42:00 2006 +0000
     1.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Sun Feb 26 19:30:21 2006 +0000
     1.3 @@ -96,7 +96,7 @@
     1.4  	:
     1.5  	: "%rax", "%rcx"
     1.6  	);
     1.7 -#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_X86_))
     1.8 +#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
     1.9  	__asm {
    1.10          pushfd                      ; Get original EFLAGS
    1.11          pop     eax
    1.12 @@ -165,7 +165,7 @@
    1.13  	:
    1.14  	: "%eax", "%ecx", "%edx", "%edi"
    1.15  	);
    1.16 -#elif defined(_MSC_VER)  && (defined(_M_IX86) || defined(_X86_))
    1.17 +#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
    1.18  	__asm {
    1.19          xor     eax, eax            ; Set up for CPUID instruction
    1.20          cpuid                       ; Get and save vendor ID
    1.21 @@ -217,7 +217,7 @@
    1.22  	:
    1.23  	: "%eax", "%ecx", "%edx", "%edi"
    1.24  	);
    1.25 -#elif defined(_MSC_VER)  && (defined(_M_IX86) || defined(_X86_))
    1.26 +#elif (defined(_MSC_VER) && defined(_M_IX86)) || defined(__WATCOMC__)
    1.27  	__asm {
    1.28          mov     eax,80000000h       ; Query for extended functions
    1.29          cpuid                       ; Get extended function limit