X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/45ea509a21a23ce62caadb6a0a9aaf3799c13d39..26ac5fadeaa4081fb0e19909d6152f75c64090bb:/include/wx/filefn.h diff --git a/include/wx/filefn.h b/include/wx/filefn.h index 720beb4bf2..eb3eb478f6 100644 --- a/include/wx/filefn.h +++ b/include/wx/filefn.h @@ -9,13 +9,15 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// -#ifndef __FILEFNH__ -#define __FILEFNH__ +#ifndef _FILEFN_H_ +#define _FILEFN_H_ #ifdef __GNUG__ #pragma interface "filefn.h" #endif +#include + // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- @@ -27,6 +29,8 @@ #define off_t _off_t #endif +const off_t wxInvalidOffset = (off_t)-1; + typedef enum { wxFromStart, wxFromCurrent, @@ -69,6 +73,7 @@ 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); @@ -199,5 +204,5 @@ class WXDLLEXPORT wxPathList: public wxStringList }; #endif - // __FILEFNH__ + // _WX_FILEFN_H_