#if defined __MWERKS__ || defined __CYGWIN__
#include <io.h>
#endif
+ #if defined __WINE__
+ extern "C" { long _get_osfhandle(int); }
+ #endif
#endif // __WINDOWS__
#if defined(__VMS__)
wxT(" :;");
#endif
- wxChar *val = wxGetenv (WXSTRINGCAST envVariable);
- if (val && *val)
+ wxString val ;
+ if (wxGetEnv (WXSTRINGCAST envVariable, &val))
{
wxChar *s = MYcopystring (val);
wxChar *save_ptr, *token = wxStrtok (s, PATH_TOKS, &save_ptr);