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:
Alex Lian 2013-01-27 22:34:58 -05:00 committed by Romuald Conty
parent 9f682cc52b
commit ef33827f04
3 changed files with 64 additions and 1 deletions

View file

@ -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