X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ba45edb0f1115945183054aac38d5cb256f66ea..0d9b2c16361930cc9b7378102395763db801250f:/src/common/file.cpp diff --git a/src/common/file.cpp b/src/common/file.cpp index 83423c7ffa..283d91002f 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 @@ -145,7 +145,7 @@ #define ACCESS(access) , (access) #endif // Salford C -// wxWindows +// wxWidgets #ifndef WX_PRECOMP #include "wx/string.h" #include "wx/intl.h" @@ -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