OpenWatcom fixed the problem of fileno being missing, and so it should be

there in OW 1.4 when it comes out.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell 2005-04-03 20:39:44 +00:00
parent b03896f1af
commit 9af00f5f79

View File

@ -1954,12 +1954,14 @@ wxFileKind wxGetFileKind(int fd)
wxFileKind wxGetFileKind(FILE *fp)
{
// note: the watcom rtl dll doesn't have fileno (the static lib does)
#if !defined wxFILEKIND_STUB && !(defined __WATCOMC__ && defined __SW_BR)
return wxGetFileKind(fileno(fp));
#else
// Note: The watcom rtl dll doesn't have fileno (the static lib does).
// Should be fixed in version 1.4.
#if defined(wxFILEKIND_STUB) || \
(defined(__WATCOMC__) && __WATCOMC__ <= 1230 && defined(__SW_BR))
(void)fp;
return wxFILE_KIND_DISK;
#else
return wxGetFileKind(fileno(fp));
#endif
}