From: Liming Gao Date: Tue, 10 Feb 2015 01:59:51 +0000 (+0000) Subject: MdePkg: Fix WINDDK3790 build failure X-Git-Tag: edk2-stable201903~10316 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=6e6f5e030b84ee8aff7c2e7d11e6f0ae3657879f MdePkg: Fix WINDDK3790 build failure WINDDK3790 doesn't support __VA_ARGS__ macro. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao Reviewed-by: Star Zeng git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16820 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Include/Library/DebugLib.h b/MdePkg/Include/Library/DebugLib.h index 402bebe7d3..88b6549359 100644 --- a/MdePkg/Include/Library/DebugLib.h +++ b/MdePkg/Include/Library/DebugLib.h @@ -252,13 +252,15 @@ DebugPrintLevelEnabled ( This macro calls DebugPrint() passing in the debug error level, a format string, and a variable argument list. + __VA_ARGS__ is not supported by ECB compiler, Microsoft Visual Studio .NET 2003 + and Microsoft Windows Server 2003 Driver Development Kit (Microsoft WINDDK) version 3790.1830. @param Expression Expression containing an error level, a format string, and a variable argument list based on the format string. **/ -#if !defined(MDE_CPU_EBC) +#if !defined(MDE_CPU_EBC) && (!defined (_MSC_VER) || _MSC_VER >= 1400) #define _DEBUG_PRINT(PrintLevel, ...) \ do { \ if (DebugPrintLevelEnabled (PrintLevel)) { \