X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fd0d89b7dc8ed4ed7e460ddc9b61ae4a0e63c3e..258e5c7427015e93a233c4d1a5d3cd164abbe57c:/include/wx/utils.h diff --git a/include/wx/utils.h b/include/wx/utils.h index abb225b1ea..09094b4877 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -207,9 +207,9 @@ WXDLLEXPORT bool wxHandleFatalExceptions(bool doit = TRUE); // Environment variables // ---------------------------------------------------------------------------- -// wxGetenv is declared in wxchar.h, but define a wrapper/synonym for it for -// consistency with wxSetEnv -inline const wxChar *wxGetEnv(const wxString& var) { return wxGetenv(var); } +// returns TRUE if variable exists (value may be NULL if you just want to check +// for this) +WXDLLEXPORT bool wxGetEnv(const wxString& var, wxString *value); // set the env var name to the given value, return TRUE on success WXDLLEXPORT bool wxSetEnv(const wxString& var, const wxChar *value);