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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user