]> git.saurik.com Git - wxWidgets.git/commitdiff
The DLL version of Watcom's C runtime doesn't have fileno, but the static
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 14 Mar 2005 01:24:40 +0000 (01:24 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Mon, 14 Mar 2005 01:24:40 +0000 (01:24 +0000)
version does

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/private.h
src/common/filefn.cpp

index 87beb0aae83226ae88f853b8301a163204b6c21e..fd292868dd9e7f9347385c86f457ad2017b96621 100644 (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))
index 39539d65fd19720b0328d9bafb05c3e1b962bbca..8a7584ac0cd85d3fab6e86f6816c521dbafe5402 100644 (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;