Fix setenv/unsetenv link errors by implementing a local version using Windows SetEnvironmentVariable.
Untested, and does not comply with the error returns per setenv.
This commit is contained in:
parent
9f682cc52b
commit
ef33827f04
3 changed files with 64 additions and 1 deletions
|
|
@ -45,4 +45,11 @@
|
|||
# define strdup _strdup
|
||||
# endif
|
||||
|
||||
/*
|
||||
* setenv and unsetenv are not Windows compliant nor implemented in MinGW.
|
||||
* These declarations get rid of the "implicit declaration warning."
|
||||
*/
|
||||
int setenv(const char *name, const char *value, int overwrite);
|
||||
void unsetenv(const char *name);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue