From: Julian Smart Date: Tue, 15 Feb 2005 22:52:27 +0000 (+0000) Subject: Ignorant WinCE fixes for compile breakage X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2d5ba365489f49158b62fcf23f4a65253bfccfd4 Ignorant WinCE fixes for compile breakage git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index ab1e71d345..876619c2c7 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1860,10 +1860,14 @@ bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special ) // wxFileKind wxGetFileKind(int fd) { +#if !defined (__WXWINCE__) if (isatty(fd)) return wxFILE_KIND_TERMINAL; +#endif -#if defined __WXMSW__ +#if defined __WXWINCE__ + return wxFILE_KIND_UNKNOWN; +#elif defined __WXMSW__ switch (::GetFileType(wxGetOSFHandle(fd)) & ~FILE_TYPE_REMOTE) { case FILE_TYPE_DISK: