X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/724a248d8d53c894b9e44e0980cac11407d0cdf9..0bb0e26c0c82778a50e901acbc5e00f739435eef:/include/wx/wxchar.h?ds=inline diff --git a/include/wx/wxchar.h b/include/wx/wxchar.h index a47178e611..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 */ @@ -768,7 +774,11 @@ WXDLLIMPEXP_BASE bool wxOKlibc(); /* for internal use */ headers, so we need to declare it ourselves to be able to use it. */ #if defined(HAVE_VSNPRINTF) && !defined(HAVE_VSNPRINTF_DECL) +#ifdef __cplusplus extern "C" +#else + extern +#endif int vsnprintf(char *str, size_t size, const char *format, va_list ap); #endif /* !HAVE_VSNPRINTF_DECL */