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:
@@ -186,6 +186,7 @@ extern LONG APIENTRY _EXPORT
|
|||||||
#elif defined(__VISUALC__) \
|
#elif defined(__VISUALC__) \
|
||||||
|| defined(__BORLANDC__) \
|
|| defined(__BORLANDC__) \
|
||||||
|| defined(__DMC__) \
|
|| defined(__DMC__) \
|
||||||
|
|| defined(__WATCOMC__) \
|
||||||
|| (defined(__GNUWIN32__) || defined(__MINGW32__)) \
|
|| (defined(__GNUWIN32__) || defined(__MINGW32__)) \
|
||||||
|| (defined(__MWERKS__) && defined(__MSL__))
|
|| (defined(__MWERKS__) && defined(__MSL__))
|
||||||
#define wxGetOSFHandle(fd) ((HANDLE)_get_osfhandle(fd))
|
#define wxGetOSFHandle(fd) ((HANDLE)_get_osfhandle(fd))
|
||||||
|
@@ -1952,7 +1952,8 @@ wxFileKind wxGetFileKind(int fd)
|
|||||||
|
|
||||||
wxFileKind wxGetFileKind(FILE *fp)
|
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));
|
return wxGetFileKind(fileno(fp));
|
||||||
#else
|
#else
|
||||||
(void)fp;
|
(void)fp;
|
||||||
|
Reference in New Issue
Block a user