CW Win32 support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -43,8 +43,13 @@
|
||||
#endif
|
||||
#endif
|
||||
#include <time.h>
|
||||
#ifndef __MWERKS__
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#else
|
||||
#include <stat.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifdef __UNIX__
|
||||
#include <unistd.h>
|
||||
@@ -52,7 +57,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
#ifndef __GNUWIN32__
|
||||
#if !defined( __GNUWIN32__ ) && !defined( __MWERKS__ )
|
||||
#include <direct.h>
|
||||
#include <dos.h>
|
||||
#endif
|
||||
@@ -1260,7 +1265,7 @@ char *wxGetWorkingDirectory(char *buf, int sz)
|
||||
{
|
||||
if (!buf)
|
||||
buf = new char[sz+1];
|
||||
#ifdef _MSC_VER
|
||||
#ifdef _MSC_VER
|
||||
if (_getcwd(buf, sz) == NULL) {
|
||||
#else
|
||||
if (getcwd(buf, sz) == NULL) {
|
||||
|
Reference in New Issue
Block a user