Move wxGetOSFHandle to include/wx/msw/private.h since it needs HANDLE anyway

and make it a macro. Make the 'default' return value for wxGetFileKind
wxFILE_KIND_DISK and add a comment explaining what it's for.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2005-02-26 15:31:42 +00:00
parent 5a22377ee5
commit 18a1516c4b
3 changed files with 49 additions and 30 deletions

View File

@@ -148,7 +148,6 @@ enum wxFileKind
int wxWrite(int fd, const void *buf, unsigned int count);
int wxEof(int fd);
wxFileOffset wxSeek(int fd, wxFileOffset offset, int origin);
inline HANDLE wxGetOSFHandle(int fd) { return (HANDLE)fd; }
#define wxLSeek wxSeek
wxFileOffset wxTell(int fd);
@@ -352,20 +351,6 @@ enum wxFileKind
#endif
#endif // platforms
#if defined(__WXMSW__) && !defined(__WXWINCE__)
// get the HANDLE associated with a file descriptor
# ifdef __CYGWIN__
# include "wx/msw/private.h" // for HANDLE
# include <io.h> // for get_osfhandle()
inline HANDLE wxGetOSFHandle(int fd) { return (HANDLE) get_osfhandle(fd); }
# else
# ifdef __BORLANDC__
# include "wx/msw/private.h" // for HANDLE
# endif
inline HANDLE wxGetOSFHandle(int fd) { return (HANDLE) _get_osfhandle(fd); }
# endif
#endif
#if defined(__VISAGECPP__) && __IBMCPP__ >= 400
//
// VisualAge C++ V4.0 cannot have any external linkage const decs