Fixed & improved file handling on OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -61,6 +61,8 @@
|
||||
|
||||
#elif defined(__WXMSW__) && defined(__WXWINCE__)
|
||||
// TODO: what to include?
|
||||
#elif (defined(__OS2__))
|
||||
#include <io.h>
|
||||
#elif (defined(__UNIX__) || defined(__GNUWIN32__))
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
@@ -78,8 +80,6 @@
|
||||
#else
|
||||
#error "Please specify the header with file functions declarations."
|
||||
#endif
|
||||
#elif (defined(__WXPM__))
|
||||
#include <io.h>
|
||||
#elif (defined(__WXSTUBS__))
|
||||
// Have to ifdef this for different environments
|
||||
#include <io.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
|
||||
|
||||
|
Reference in New Issue
Block a user