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:
parent
b03896f1af
commit
9af00f5f79
@ -1954,12 +1954,14 @@ wxFileKind wxGetFileKind(int fd)
|
|||||||
|
|
||||||
wxFileKind wxGetFileKind(FILE *fp)
|
wxFileKind wxGetFileKind(FILE *fp)
|
||||||
{
|
{
|
||||||
// note: the watcom rtl dll doesn't have fileno (the static lib does)
|
// Note: The watcom rtl dll doesn't have fileno (the static lib does).
|
||||||
#if !defined wxFILEKIND_STUB && !(defined __WATCOMC__ && defined __SW_BR)
|
// Should be fixed in version 1.4.
|
||||||
return wxGetFileKind(fileno(fp));
|
#if defined(wxFILEKIND_STUB) || \
|
||||||
#else
|
(defined(__WATCOMC__) && __WATCOMC__ <= 1230 && defined(__SW_BR))
|
||||||
(void)fp;
|
(void)fp;
|
||||||
return wxFILE_KIND_DISK;
|
return wxFILE_KIND_DISK;
|
||||||
|
#else
|
||||||
|
return wxGetFileKind(fileno(fp));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user