Compilation/warning fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-05-24 20:07:22 +00:00
parent 7bb2947d52
commit 29d0a26e65
4 changed files with 12 additions and 2 deletions

View File

@@ -124,6 +124,11 @@
#include <windows.h>
#include "wx/msw/mslu.h"
// for _getcwd
#ifdef __MINGW32__
#include <io.h>
#endif
// sys/cygwin.h is needed for cygwin_conv_to_full_win32_path()
//
// note that it must be included after <windows.h>
@@ -1493,7 +1498,7 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz)
if ( needsANSI )
#endif // wxUSE_UNICODE
{
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
ok = _getcwd(cbuf, sz) != NULL;
#elif defined(__WXMAC__) && !defined(__DARWIN__)
FSSpec cwdSpec ;