X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6294ac2e91af3408cfa04910b90ad7ace94f1220..137c8bde085d6d5b7c459902d2ea1a198ab48765:/src/msw/wince/filefnwce.cpp?ds=sidebyside diff --git a/src/msw/wince/filefnwce.cpp b/src/msw/wince/filefnwce.cpp index ba56448e41..61827f0f6d 100644 --- a/src/msw/wince/filefnwce.cpp +++ b/src/msw/wince/filefnwce.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: filefn.cpp +// Name: src/msw/wince/filefn.cpp // Purpose: File- and directory-related functions // Author: Julian Smart // Modified by: @@ -17,26 +17,22 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "filefn.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#include "wx/defs.h" -#include "wx/file.h" #ifdef __BORLANDC__ #pragma hdrstop #endif +#include "wx/file.h" + #include #include #include #include -#include -#ifdef __WINCE__ +#ifdef __WXWINCE__ +#include "wx/msw/wince/missing.h" int wxOpen(const wxChar *filename, int oflag, int WXUNUSED(pmode)) { @@ -127,12 +123,12 @@ int wxEof(int fd) DWORD off0 = SetFilePointer((HANDLE) fd, 0, &high0, FILE_CURRENT); if (off0 == 0xFFFFFFFF && GetLastError() != NO_ERROR) return -1; - + LONG high1 = 0; DWORD off1 = SetFilePointer((HANDLE) fd, 0, &high0, FILE_END); if (off1 == 0xFFFFFFFF && GetLastError() != NO_ERROR) return -1; - + if (off0 == off1 && high0 == high1) return 1; else @@ -211,4 +207,4 @@ int wxFsync(int WXUNUSED(fd)) return 0; } -#endif //__WINCE__ +#endif //__WXWINCE__