File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 40
40
#include <string.h>
41
41
42
42
# undef unsetenv
43
+ #ifdef _WIN32
44
+ #define unsetenv (name ) _putenv_s(name, "")
45
+ #else
43
46
# if !HAVE_DECL_UNSETENV
44
47
# if VOID_UNSETENV
45
48
extern void unsetenv (const char * );
46
49
# else
47
50
extern int unsetenv (const char * );
48
51
# endif
49
52
# endif
53
+ #endif
50
54
51
55
int main (int argc , char * argv []) {
52
56
Original file line number Diff line number Diff line change 40
40
#include <string.h>
41
41
42
42
# undef unsetenv
43
+ #ifdef _WIN32
44
+ #define unsetenv (name ) _putenv_s(name, "")
45
+ #else
43
46
# if !HAVE_DECL_UNSETENV
44
47
# if VOID_UNSETENV
45
48
extern void unsetenv (const char * );
46
49
# else
47
50
extern int unsetenv (const char * );
48
51
# endif
49
52
# endif
53
+ #endif
50
54
51
55
int main (int argc , char * argv []) {
52
56
You can’t perform that action at this time.
0 commit comments