Updated Visual C++ support
authorSam Lantinga <slouken@libsdl.org>
Mon, 24 Nov 2003 19:58:29 +0000
changeset 74906cdd106d61c
parent 748 c1c09472dc7f
child 750 ce48d14ca5bf
Updated Visual C++ support
VisualC.zip
src/cpuinfo/SDL_cpuinfo.c
     1.1 Binary file VisualC.zip has changed
     2.1 --- a/src/cpuinfo/SDL_cpuinfo.c	Mon Nov 24 09:30:40 2003 +0000
     2.2 +++ b/src/cpuinfo/SDL_cpuinfo.c	Mon Nov 24 19:58:29 2003 +0000
     2.3 @@ -59,7 +59,7 @@
     2.4  	: "%eax", "%ecx"
     2.5  	);
     2.6  #elif defined(_MSC_VER)
     2.7 -	__asm__ {
     2.8 +	__asm {
     2.9          pushfd                      ; Get original EFLAGS
    2.10          pop     eax
    2.11          mov     ecx, eax
    2.12 @@ -102,7 +102,7 @@
    2.13  	: "%eax", "%ebx", "%ecx", "%edx"
    2.14  	);
    2.15  #elif defined(_MSC_VER)
    2.16 -	__asm__ {
    2.17 +	__asm {
    2.18          xor     eax, eax            ; Set up for CPUID instruction
    2.19          cpuid                       ; Get and save vendor ID
    2.20          cmp     eax, 1              ; Make sure 1 is valid input for CPUID
    2.21 @@ -162,7 +162,7 @@
    2.22  	: "%eax", "%ebx", "%ecx", "%edx"
    2.23  	);
    2.24  #elif defined(_MSC_VER)
    2.25 -	__asm__ {
    2.26 +	__asm {
    2.27          mov     eax,80000000h       ; Query for extended functions
    2.28          cpuid                       ; Get extended function limit
    2.29          cmp     eax,80000001h