mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-02-21 22:23:45 +08:00
gcc10 compiler fixes:
- Check for availability of getenv_s() in argtable3.c
This commit is contained in:
parent
d3f8d76d6c
commit
cbecb8a209
1 changed files with 1 additions and 1 deletions
|
@ -1705,7 +1705,7 @@ getopt_internal(int nargc, char * const *nargv, const char *options,
|
|||
* string begins with a '+'.
|
||||
*/
|
||||
if (posixly_correct == -1 || optreset) {
|
||||
#ifdef _WIN32
|
||||
#if (defined(__STDC_LIB_EXT1__) && defined(__STDC_WANT_LIB_EXT1__)) || (defined(__STDC_SECURE_LIB__) && defined(__STDC_WANT_SECURE_LIB__))
|
||||
size_t requiredSize;
|
||||
getenv_s(&requiredSize, NULL, 0, "POSIXLY_CORRECT");
|
||||
posixly_correct = requiredSize != 0;
|
||||
|
|
Loading…
Reference in a new issue