Updated Visual C++ support
authorSam Lantinga <slouken@libsdl.org>
Mon, 24 Nov 2003 19:58:29 +0000
changeset 749 06cdd106d61c
parent 748 c1c09472dc7f
child 750 ce48d14ca5bf
Updated Visual C++ support
VisualC.zip
src/cpuinfo/SDL_cpuinfo.c
Binary file VisualC.zip has changed
--- a/src/cpuinfo/SDL_cpuinfo.c	Mon Nov 24 09:30:40 2003 +0000
+++ b/src/cpuinfo/SDL_cpuinfo.c	Mon Nov 24 19:58:29 2003 +0000
@@ -59,7 +59,7 @@
 	: "%eax", "%ecx"
 	);
 #elif defined(_MSC_VER)
-	__asm__ {
+	__asm {
         pushfd                      ; Get original EFLAGS
         pop     eax
         mov     ecx, eax
@@ -102,7 +102,7 @@
 	: "%eax", "%ebx", "%ecx", "%edx"
 	);
 #elif defined(_MSC_VER)
-	__asm__ {
+	__asm {
         xor     eax, eax            ; Set up for CPUID instruction
         cpuid                       ; Get and save vendor ID
         cmp     eax, 1              ; Make sure 1 is valid input for CPUID
@@ -162,7 +162,7 @@
 	: "%eax", "%ebx", "%ecx", "%edx"
 	);
 #elif defined(_MSC_VER)
-	__asm__ {
+	__asm {
         mov     eax,80000000h       ; Query for extended functions
         cpuid                       ; Get extended function limit
         cmp     eax,80000001h