// ----------------------------------------------------------------------------
// define off_t
+#ifndef __WXMAC__
#include <sys/types.h>
+#else
+typedef long off_t;
+#endif
#ifdef _MSC_VER
#define off_t _off_t
#endif
+#if defined(__BORLANDC__) && defined(__WIN16__)
+typedef long off_t;
+#endif
+
+#if defined(__SC__)
+typedef long off_t;
+#endif
+
const off_t wxInvalidOffset = (off_t)-1;
typedef enum {
wxFromEnd
} wxSeekMode;
+WXDLLEXPORT_DATA(extern const char*) wxEmptyString;
+
// ----------------------------------------------------------------------------
// functions
// ----------------------------------------------------------------------------
WXDLLEXPORT void wxUnix2DosFilename(char *s);
#define Unix2DosFilename wxUnix2DosFilename
+#ifdef __WXMAC__
+ WXDLLEXPORT void wxMacPathToFSSpec( const char *path , FSSpec *spec ) ;
+ WXDLLEXPORT void wxMac2UnixFilename(char *s);
+ WXDLLEXPORT void wxUnix2MacFilename(char *s);
+#endif
// Strip the extension, in situ
WXDLLEXPORT void wxStripExtension(char *buffer);
WXDLLEXPORT void wxStripExtension(wxString& buffer);
// Contract w.r.t environment (</usr/openwin/lib, OPENWHOME> -> ${OPENWINHOME}/lib)
// and make (if under the home tree) relative to home
// [caller must copy-- volatile]
-WXDLLEXPORT char* wxContractPath (const wxString& filename,
- const wxString& envname = "", const wxString& user = "");
+WXDLLEXPORT char* wxContractPath(const wxString& filename,
+ const wxString& envname = "",
+ const wxString& user = "");
// Destructive removal of /./ and /../ stuff
WXDLLEXPORT char* wxRealPath(char *path);