The DLL version of Watcom's C runtime doesn't have fileno, but the static

version does


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell 2005-03-14 01:24:40 +00:00
parent 78a94517c0
commit 74fe675195
2 changed files with 3 additions and 1 deletions

View File

@ -186,6 +186,7 @@ extern LONG APIENTRY _EXPORT
#elif defined(__VISUALC__) \
|| defined(__BORLANDC__) \
|| defined(__DMC__) \
|| defined(__WATCOMC__) \
|| (defined(__GNUWIN32__) || defined(__MINGW32__)) \
|| (defined(__MWERKS__) && defined(__MSL__))
#define wxGetOSFHandle(fd) ((HANDLE)_get_osfhandle(fd))

View File

@ -1952,7 +1952,8 @@ wxFileKind wxGetFileKind(int fd)
wxFileKind wxGetFileKind(FILE *fp)
{
#ifndef wxFILEKIND_STUB
// 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
(void)fp;