SN: Replace a __WXPM__ by __OS2__ in #if deciding whether to use Unix-
or DOS-like version of mkdir. EMX (which doesn't define __OS2__) wants Unix-like version! git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1075,9 +1075,9 @@ bool wxMkdir(const wxString& dir, int perm)
|
|||||||
|
|
||||||
// assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too
|
// assume mkdir() has 2 args on non Windows-OS/2 platforms and on Windows too
|
||||||
// for the GNU compiler
|
// 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 )
|
if ( mkdir(wxFNCONV(dirname), perm) != 0 )
|
||||||
#else // MSW and OS/2
|
#else // !MSW and !OS/2 VAC++
|
||||||
if ( mkdir(wxFNSTRINGCAST wxFNCONV(dirname)) != 0 )
|
if ( mkdir(wxFNSTRINGCAST wxFNCONV(dirname)) != 0 )
|
||||||
#endif // !MSW/MSW
|
#endif // !MSW/MSW
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user