Skip to content

windows: stop setting _CRT_NONSTDC_NO_DEPRECATE for MSVC - #2332

Closed
vszakats wants to merge 8 commits into
libssh2:masterfrom
vszakats:msvc-suppr
Closed

vszakats wants to merge 8 commits into
libssh2:masterfrom
vszakats:msvc-suppr

Conversation

@vszakats

@vszakats vszakats commented Jul 16, 2026 •

Copy link
Copy Markdown
Member

It wasn't needed anymore for write() in contratry to the comment,
because mapping it earlier to _write() in examples. But, it was needed
again for strdup() due to a regression. Fix it by mapping it again to
_strdup() in examples.

Also: document vsnprintf() used in tests.

Follow-up to ca43b30 #2042
Follow-up to e8e6bc2 #1688

@vszakats
vszakats marked this pull request as draft July 16, 2026 15:45
vszakats added 3 commits July 16, 2026 17:51
```
C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\corecrt_io.h(560,30): error C2059: syntax error: '(' [D:\a\libssh2\libssh2\bld\tests\test_ssh2.vcxproj]
  (compiling source file '../../tests/test_ssh2.c')
```
https://github.com/libssh2/libssh2/actions/runs/29512562642/job/87669418852?pr=2332
@vszakats
vszakats marked this pull request as ready for review July 16, 2026 16:20
@vszakats vszakats changed the title msvc: try dropping _CRT_NONSTDC_NO_DEPRECATE windows: stop setting _CRT_NONSTDC_NO_DEPRECATE for MSVC Jul 16, 2026
@vszakats vszakats closed this in deefd7f Jul 16, 2026
@vszakats
vszakats deleted the msvc-suppr branch July 16, 2026 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant