wxSetEnv for Win32 (now seems to work)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-11-27 00:21:29 +00:00
parent 1fb454751d
commit 308978f6aa
5 changed files with 74 additions and 10 deletions

View File

@@ -873,6 +873,21 @@ long wxGetFreeMemory()
// env vars
// ----------------------------------------------------------------------------
bool wxGetEnv(const wxString& var, wxString *value);
{
// wxGetenv is defined as getenv()
wxChar *p = wxGetenv(var);
if ( !p )
return FALSE;
if ( value )
{
*value = p;
}
return TRUE;
}
bool wxSetEnv(const wxString& variable, const wxChar *value)
{
#if defined(HAVE_SETENV)