X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e49f47aa77457548df1a86f74c285ea3226b3cce..7ce404dd7b42723cbeabb6928fddf340d26235d2:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 8de99567f5..c7c5b3ff7f 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -9,8 +9,8 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifndef __FILEFNH__ -#define __FILEFNH__ +#ifndef _FILEFN_H_ +#define _FILEFN_H_ #ifdef __GNUG__ #pragma interface "filefn.h" @@ -29,6 +29,8 @@ #define off_t _off_t #endif +const off_t wxInvalidOffset = (off_t)-1; + typedef enum { wxFromStart, wxFromCurrent, @@ -71,9 +73,10 @@ void WXDLLEXPORT wxUnix2DosFilename(char *s); // Strip the extension, in situ void WXDLLEXPORT wxStripExtension(char *buffer); +void WXDLLEXPORT wxStripExtension(wxString& buffer); // Get a temporary filename, opening and closing the file. -char* WXDLLEXPORT wxGetTempFileName(const wxString& prefix, char *buf = NULL); +char* WXDLLEXPORT wxGetTempFileName(const wxString& prefix, char *buf = (char *) NULL); // Expand file name (~/ and ${OPENWINHOME}/ stuff) char* WXDLLEXPORT wxExpandPath(char *dest, const char *path); @@ -122,7 +125,7 @@ bool WXDLLEXPORT wxRenameFile(const wxString& file1, const wxString& file2); // copies into buf. // IMPORTANT NOTE getcwd is know not to work under some releases // of Win32s 1.3, according to MS release notes! -char* WXDLLEXPORT wxGetWorkingDirectory(char *buf = NULL, int sz = 1000); +char* WXDLLEXPORT wxGetWorkingDirectory(char *buf = (char *) NULL, int sz = 1000); // Set working directory bool WXDLLEXPORT wxSetWorkingDirectory(const wxString& d); @@ -201,5 +204,5 @@ class WXDLLEXPORT wxPathList: public wxStringList }; #endif - // __FILEFNH__ + // _WX_FILEFN_H_