X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9e9f08b5ed6715482307be13aa662051a25e9458..cf283a470ab3eb4bc69959e3b5ae0edf30337fa5:/src/msdos/utilsdos.cpp?ds=sidebyside diff --git a/src/msdos/utilsdos.cpp b/src/msdos/utilsdos.cpp index 3b9328c561..6f432f4f89 100644 --- a/src/msdos/utilsdos.cpp +++ b/src/msdos/utilsdos.cpp @@ -96,7 +96,7 @@ bool wxGetEnv(const wxString& var, wxString *value) return true; } -bool wxSetEnv(const wxString& variable, const wxChar *value) +static bool wxDoSetEnv(const wxString& variable, const char *value) { wxString s = variable; if ( value ) @@ -112,6 +112,17 @@ bool wxSetEnv(const wxString& variable, const wxChar *value) return putenv(buf) == 0; } +bool wxSetEnv(const wxString& variable, const wxString& value) +{ + return wxDoSetEnv(variable, value.mb_str()); +} + +bool wxUnsetEnv(const wxString& variable) +{ + return wxDoSetEnv(variable, NULL); +} + + //---------------------------------------------------------------------------- // Hostname, username, home directory //----------------------------------------------------------------------------