From 9af00f5f79eb126a93db33b29a3a94321ba01989 Mon Sep 17 00:00:00 2001 From: Michael Wetherell Date: Sun, 3 Apr 2005 20:39:44 +0000 Subject: [PATCH] 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 --- src/common/filefn.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 55aa0e7ce8..2d28e3ac96 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -1954,12 +1954,14 @@ wxFileKind wxGetFileKind(int fd) wxFileKind wxGetFileKind(FILE *fp) { - // 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 + // Note: The watcom rtl dll doesn't have fileno (the static lib does). + // Should be fixed in version 1.4. +#if defined(wxFILEKIND_STUB) || \ + (defined(__WATCOMC__) && __WATCOMC__ <= 1230 && defined(__SW_BR)) (void)fp; return wxFILE_KIND_DISK; +#else + return wxGetFileKind(fileno(fp)); #endif } -- 2.45.2