X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1cbf5bc6dfb66a1a797597e3f11afed270bef0c1..682214d5c6ec3e56dbdfd0c97d70d87e614b38c2:/include/wx/wxchar.h diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 54bab1f6ea..dd6e3851c2 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -369,7 +369,13 @@ #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__ + /* can't define as inline function as this is a C file... */ + #define wxGetenv(name) ((wxChar *)NULL) + #else + #define wxGetenv _tgetenv + #endif #define wxSystem _tsystem /* time.h functions */