[ros-diffs] [tkreuzer] 51181: [NTOSKRNL] Move macro definition out of macro instantiation. Fixes compilation with MSVC

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon Mar 28 11:58:47 UTC 2011


Author: tkreuzer
Date: Mon Mar 28 11:58:46 2011
New Revision: 51181

URL: http://svn.reactos.org/svn/reactos?rev=51181&view=rev
Log:
[NTOSKRNL]
Move macro definition out of macro instantiation.
Fixes compilation with MSVC

Modified:
    branches/cmake-bringup/ntoskrnl/ke/i386/cpu.c

Modified: branches/cmake-bringup/ntoskrnl/ke/i386/cpu.c
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/ntoskrnl/ke/i386/cpu.c?rev=51181&r1=51180&r2=51181&view=diff
==============================================================================
--- branches/cmake-bringup/ntoskrnl/ke/i386/cpu.c [iso-8859-1] (original)
+++ branches/cmake-bringup/ntoskrnl/ke/i386/cpu.c [iso-8859-1] Mon Mar 28 11:58:46 2011
@@ -474,10 +474,9 @@
             }
         }
     }
-    
+
+#define print_supported(kf_value) ((FeatureBits & kf_value) ? #kf_value : "")
     DPRINT1("Supported CPU features : %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s\n",
-#define print_supported(kf_value) \
-    FeatureBits & kf_value ? #kf_value : ""
     print_supported(KF_V86_VIS),
     print_supported(KF_RDTSC),
     print_supported(KF_CR4),
@@ -739,7 +738,7 @@
                 /* Check if we support CPUID 0x80000006 */
                 CPUID(0x80000000, &Data[0], &Data[1], &Data[2], &Data[3]);
                 if (Data[0] >= 0x80000006)
-                {   
+                {
                     /* Get 2nd level cache and tlb size */
                     CPUID(0x80000006, &Data[0], &Data[1], &Data[2], &Data[3]);
                     
@@ -1352,7 +1351,7 @@
         
         /* Now load NPX state from the NPX area */
         FxSaveArea = KiGetThreadNpxArea(Thread);
-        Ke386FxStore(FxSaveArea);    
+        Ke386FxStore(FxSaveArea);
     }
     else
     {




More information about the Ros-diffs mailing list