Getting rid of std 'C' io for OS/2 and substituting friendlier Control Program io.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2000-04-03 04:22:06 +00:00
parent 54d02b59ad
commit 7d12fcd019
2 changed files with 16 additions and 5 deletions

View File

@@ -62,7 +62,6 @@
#endif
#elif (defined(__WXPM__))
#include <io.h>
#include <direct.h>
#define W_OK 2
#define R_OK 4
#elif (defined(__WXSTUBS__))
@@ -470,7 +469,7 @@ bool wxTempFile::Open(const wxString& strName)
// OS/2 supports that have them (HPFS, FAT32) and security (HPFS386)
static const wxChar *szMktempSuffix = wxT("XXX");
m_strTemp << strName << szMktempSuffix;
mkdir(m_strTemp.GetWriteBuf(MAX_PATH));
::DosCreateDir(m_strTemp.GetWriteBuf(MAX_PATH), NULL);
#else // Windows
wxString strPath;
wxSplitPath(strName, &strPath, NULL, NULL);