Skip to content

Commit

Permalink
gcc10 compiler fixes:
Browse files Browse the repository at this point in the history
- Check for availability of getenv_s() in argtable3.c
  • Loading branch information
pwpiwi committed Mar 18, 2021
1 parent d3f8d76 commit cbecb8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/cliparser/argtable3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cbecb8a

Please sign in to comment.