Commit 625476d
committed
fix(core): guard _dupenv_s with _MSC_VER rather than _WIN32
_dupenv_s is an MSVC CRT extension. MinGW-w64 targets Windows, so it
satisfies defined(_WIN32) and selects a branch it cannot link: a CNA
D3D11 or D3D12 cross-build fails with "undefined reference to
`__imp__dupenv_s'", and with it no Windows cross-build of CnaTests links
at all. getenv is the correct fallback for that toolchain and is already
what the non-Windows branch uses.1 parent bc8dbf4 commit 625476d
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
0 commit comments