Skip to content

Commit 6d2ee35

Browse files
committed
Fix when /Zc:wchar_t is enabled
1 parent 86a6154 commit 6d2ee35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vld_def.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323

2424
#pragma once
2525

26-
#include <wchar.h>
26+
#ifndef _WCHAR_T_DEFINED
27+
# include <wchar.h>
28+
#endif
2729

2830
#define VLD_OPT_AGGREGATE_DUPLICATES 0x0001 // If set, aggregate duplicate leaks in the leak report.
2931
#define VLD_OPT_MODULE_LIST_INCLUDE 0x0002 // If set, modules in the module list are included, all others are excluded.

0 commit comments

Comments
 (0)