From: Michael Wetherell Date: Mon, 14 Mar 2005 01:24:40 +0000 (+0000) Subject: The DLL version of Watcom's C runtime doesn't have fileno, but the static X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/74fe67519523c6f1cfda998915e12d9a7ba287a0 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 --- diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index 87beb0aae8..fd292868dd 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -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)) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 39539d65fd..8a7584ac0c 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -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;