X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a47ce4a7648a003e2fd42fd636c55f73e120d3a3..579d7d131680a00603df4ab0f374975bf0b098a0:/src/common/filefn.cpp diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 422cb94d68..f8f4989918 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -110,6 +110,10 @@ // constants // ---------------------------------------------------------------------------- +#if defined(__VISAGECPP__) && __IBMCPP__ >= 400 +const off_t wxInvalidOffset = (off_t)-1; +#endif + #define _MAXPATHLEN 500 extern wxChar *wxBuffer; @@ -1075,9 +1079,9 @@ bool wxMkdir(const wxString& dir, int perm) // assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too // for the GNU compiler -#if (!(defined(__WXMSW__) || defined(__WXPM__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) +#if (!(defined(__WXMSW__) || defined(__OS2__))) || (defined(__GNUWIN32__) && !defined(__MINGW32__)) || defined(__WXWINE__) if ( mkdir(wxFNCONV(dirname), perm) != 0 ) -#else // MSW and OS/2 +#else // !MSW and !OS/2 VAC++ if ( mkdir(wxFNSTRINGCAST wxFNCONV(dirname)) != 0 ) #endif // !MSW/MSW {