From: Vadim Zeitlin Date: Thu, 10 Mar 2005 19:20:04 +0000 (+0000) Subject: define wxGetEnv() as macro, not inline function, for WinCE as otherwise extended... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2f5e2c177cb3f004d676303ad9accb347d882570 define wxGetEnv() as macro, not inline function, for WinCE as otherwise extended.c compilation fails git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index 6e5017ab7e..a2d0492081 100644 --- a/include/wx/wxchar.h +++ b/include/wx/wxchar.h @@ -371,7 +371,8 @@ /* #define wxAtof _tttof -- notice that there is no such thing (why?) */ /* there are no env vars at all under CE, so no _tgetenv neither */ #ifdef __WXWINCE__ - inline wxChar *wxGetenv(const wxChar *) { return NULL; } + /* can't define as inline function as this is a C file... */ + #define wxGetenv(name) NULL #else #define wxGetenv _tgetenv #endif