Revision: 16820 http://sourceforge.net/p/edk2/code/16820 Author: lgao4 Date: 2015-02-10 01:59:51 +0000 (Tue, 10 Feb 2015) Log Message: ----------- MdePkg: Fix WINDDK3790 build failure
WINDDK3790 doesn't support __VA_ARGS__ macro. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming....@intel.com> Reviewed-by: Star Zeng <star.z...@intel.com> Modified Paths: -------------- trunk/edk2/MdePkg/Include/Library/DebugLib.h Modified: trunk/edk2/MdePkg/Include/Library/DebugLib.h =================================================================== --- trunk/edk2/MdePkg/Include/Library/DebugLib.h 2015-02-09 07:37:02 UTC (rev 16819) +++ trunk/edk2/MdePkg/Include/Library/DebugLib.h 2015-02-10 01:59:51 UTC (rev 16820) @@ -252,13 +252,15 @@ 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)) { \ ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits