Skip to content

Commit 98b25af

Browse files
committed
add includes for _wgetenv
1 parent 57dd853 commit 98b25af

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/DxcSupport/dxcapi.extval.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
// WinIncludes must come before dxcapi.extval.h
55
#include "dxc/Support/Unicode.h" // for wstring conversions like WideToUtf8String
66
#include "dxc/Support/dxcapi.extval.h"
7+
#include <wchar.h> // for _wgetenv
78

89
HRESULT DxcDllExtValidationSupport::InitializeInternal(LPCSTR dllName,
910
LPCSTR fnName) {

tools/clang/unittests/HLSL/ValidationTest.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "llvm/ADT/StringRef.h"
2727
#include "llvm/Support/Regex.h"
2828
#include <cstdlib> // for setenv(), getenv(), unsetenv()
29+
#include <wchar.h> // for _wgetenv
2930

3031
#ifdef _WIN32
3132
#include <atlbase.h>

0 commit comments

Comments
 (0)