projects
/
proxmark3-svn
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3f8d76
)
gcc10 compiler fixes:
969/head
author
pwpiwi
<micki.held@gmx.de>
Thu, 18 Mar 2021 07:25:16 +0000
(08:25 +0100)
committer
pwpiwi
<micki.held@gmx.de>
Thu, 18 Mar 2021 07:25:16 +0000
(08:25 +0100)
- Check for availability of getenv_s() in argtable3.c
client/cliparser/argtable3.c
patch
|
blob
|
blame
|
history
diff --git
a/client/cliparser/argtable3.c
b/client/cliparser/argtable3.c
index 180ec6c11169c38057e6628d987567e060a42a9e..dfcc9c190c2ac902619d5fa0564194e4591cc581 100644
(file)
--- a/
client/cliparser/argtable3.c
+++ b/
client/cliparser/argtable3.c
@@
-1705,7
+1705,7
@@
getopt_internal(int nargc, char * const *nargv, const char *options,
* string begins with a '+'.
*/
if (posixly_correct == -1 || optreset) {
-#if
def _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;
Impressum
,
Datenschutz