Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add openconnect__win32_setenv function to compat.c
Based on: * POSIX-compatible `setenv` implementation for Windows: https://stackoverflow.com/a/23616164 * Enabling Windows "secure API" getenv_s and _putenv_s functions in MinGW: * Using -DMINGW_HAS_SECURE_API: https://stackoverflow.com/a/51977723 * By manually defining their prototypes: https://stackoverflow.com/a/51977723 * Apparently, only newer versions of MinGW follow the MINGW_HAS_SECURE_API flag, and autodetecting them is quite hard. Signed-off-by: Daniel Lenski <dlenski@gmail.com>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters