]> git.saurik.com Git - wxWidgets.git/commitdiff
Wine fix
authorJulian Smart <julian@anthemion.co.uk>
Tue, 17 May 2005 12:09:01 +0000 (12:09 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 17 May 2005 12:09:01 +0000 (12:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/filefn.cpp

index afc6b6705e32ada508bb499701f8f8d244e4ec4c..0df4b475a06bfc235c45e9006649b1ebd19a32c1 100644 (file)
@@ -79,9 +79,6 @@
     #if defined __MWERKS__ || defined __CYGWIN__
         #include <io.h>
     #endif
     #if defined __MWERKS__ || defined __CYGWIN__
         #include <io.h>
     #endif
-    #if defined __WINE__
-    extern "C" { long _get_osfhandle(int); }
-    #endif
 #endif // __WINDOWS__
 
 #if defined(__VMS__)
 #endif // __WINDOWS__
 
 #if defined(__VMS__)
@@ -1927,7 +1924,7 @@ bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
 //
 wxFileKind wxGetFileKind(int fd)
 {
 //
 wxFileKind wxGetFileKind(int fd)
 {
-#if defined __WXMSW__ && !defined __WXWINCE__ && defined wxGetOSFHandle
+#if defined __WXMSW__ && !defined __WXWINCE__ && defined wxGetOSFHandle && !defined(__WINE__)
     switch (::GetFileType(wxGetOSFHandle(fd)) & ~FILE_TYPE_REMOTE)
     {
         case FILE_TYPE_CHAR:
     switch (::GetFileType(wxGetOSFHandle(fd)) & ~FILE_TYPE_REMOTE)
     {
         case FILE_TYPE_CHAR: