From: Vadim Zeitlin Date: Thu, 10 Mar 2005 19:14:53 +0000 (+0000) Subject: define wxGetenv() for WinCE which doesn't have _tgetenv() to always return NULL X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cbffcf1117944db24ee8c196440702172dd0923f define wxGetenv() for WinCE which doesn't have _tgetenv() to always return NULL git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 54bab1f6ea..6e5017ab7e 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -369,7 +369,12 @@ #define wxAtoi _ttoi #define wxAtol _ttol /* #define wxAtof _tttof -- notice that there is no such thing (why?) */ - #define wxGetenv _tgetenv + /* there are no env vars at all under CE, so no _tgetenv neither */ + #ifdef __WXWINCE__ + inline wxChar *wxGetenv(const wxChar *) { return NULL; } + #else + #define wxGetenv _tgetenv + #endif #define wxSystem _tsystem /* time.h functions */