REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4683
When VS20xx host-based unit tests are built with debug
libraries a name collision occurs with the DebugLib.h
internal macro _DEBUG(). Rename this internal macro
to _DEBUGLIB_DEBUG() to address the name collision.
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>
DebugPrint (PrintLevel, ##__VA_ARGS__); \\r
} \\r
} while (FALSE)\r
-#define _DEBUG(Expression) _DEBUG_PRINT Expression\r
+#define _DEBUGLIB_DEBUG(Expression) _DEBUG_PRINT Expression\r
#else\r
-#define _DEBUG(Expression) DebugPrint Expression\r
+#define _DEBUGLIB_DEBUG(Expression) DebugPrint Expression\r
#endif\r
\r
/**\r
#define DEBUG(Expression) \\r
do { \\r
if (DebugPrintEnabled ()) { \\r
- _DEBUG (Expression); \\r
+ _DEBUGLIB_DEBUG (Expression); \\r
} \\r
} while (FALSE)\r
#else\r