X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ba45edb0f1115945183054aac38d5cb256f66ea..ea8f6fc718c121d91e5026840d3f22160d83e512:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index 83423c7ffa..3eacce8a6a 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -61,6 +61,8 @@ #elif defined(__WXMSW__) && defined(__WXWINCE__) // TODO: what to include? +#elif (defined(__OS2__)) + #include #elif (defined(__UNIX__) || defined(__GNUWIN32__)) #include #include @@ -78,8 +80,6 @@ #else #error "Please specify the header with file functions declarations." #endif -#elif (defined(__WXPM__)) - #include #elif (defined(__WXSTUBS__)) // Have to ifdef this for different environments #include @@ -697,7 +697,9 @@ bool wxTempFile::Open(const wxString& strName) if ( chmod( (const char*) m_strTemp.fn_str(), mode) == -1 ) { +#ifndef __OS2__ wxLogSysError(_("Failed to set temporary file permissions")); +#endif } #endif // Unix