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:
@@ -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
|
||||
|
Reference in New Issue
Block a user