]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Fix WINDDK3790 build failure
authorLiming Gao <liming.gao@intel.com>
Tue, 10 Feb 2015 01:59:51 +0000 (01:59 +0000)
committerlgao4 <lgao4@Edk2>
Tue, 10 Feb 2015 01:59:51 +0000 (01:59 +0000)
WINDDK3790 doesn't support __VA_ARGS__ macro.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16820 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Library/DebugLib.h

index 402bebe7d3797f94c7ba07c14b23388685163f33..88b65493597e05becc491cab6ad059cd8e8d5ac3 100644 (file)
@@ -252,13 +252,15 @@ DebugPrintLevelEnabled (
 \r
   This macro calls DebugPrint() passing in the debug error level, a format \r
   string, and a variable argument list.\r
+  __VA_ARGS__ is not supported by ECB compiler, Microsoft Visual Studio .NET 2003\r
+  and Microsoft Windows Server 2003 Driver Development Kit (Microsoft WINDDK) version 3790.1830.\r
 \r
   @param  Expression  Expression containing an error level, a format string, \r
                       and a variable argument list based on the format string.\r
 \r
 **/\r
 \r
-#if !defined(MDE_CPU_EBC)\r
+#if !defined(MDE_CPU_EBC) && (!defined (_MSC_VER) || _MSC_VER >= 1400)\r
   #define _DEBUG_PRINT(PrintLevel, ...)              \\r
     do {                                             \\r
       if (DebugPrintLevelEnabled (PrintLevel)) {     \\r