summaryrefslogtreecommitdiff
path: root/MdePkg/Include
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2015-02-10 01:59:51 +0000
committerlgao4 <lgao4@Edk2>2015-02-10 01:59:51 +0000
commit6e6f5e030b84ee8aff7c2e7d11e6f0ae3657879f (patch)
tree315ccb3634f3e1afe6bd877752c5c78f9fdeee72 /MdePkg/Include
parentebf6860309628a1d0fe84cb8989b9e3ba4481ea4 (diff)
downloadedk2-platforms-6e6f5e030b84ee8aff7c2e7d11e6f0ae3657879f.tar.xz
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.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
Diffstat (limited to 'MdePkg/Include')
-rw-r--r--MdePkg/Include/Library/DebugLib.h4
1 files changed, 3 insertions, 1 deletions
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)) { \