1. corrections for compilation of the wxBase apps with wxApp
2. wxCAL_NO_MONTH/YEAR_CHANGE styles implemented, cosmetic corrections 3. attempt at BC++ compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1040,3 +1040,37 @@ wxString wxGetHomeDir()
|
||||
|
||||
return home;
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
wxString wxGetCurrentDir()
|
||||
{
|
||||
wxString dir;
|
||||
size_t len = 1024;
|
||||
bool ok;
|
||||
do
|
||||
{
|
||||
ok = getcwd(dir.GetWriteBuf(len + 1), len) != NULL;
|
||||
dir.UngetWriteBuf();
|
||||
|
||||
if ( !ok )
|
||||
{
|
||||
if ( errno != ERANGE )
|
||||
{
|
||||
wxLogSysError(_T("Failed to get current directory"));
|
||||
|
||||
return wxEmptyString;
|
||||
}
|
||||
else
|
||||
{
|
||||
// buffer was too small, retry with a larger one
|
||||
len *= 2;
|
||||
}
|
||||
}
|
||||
//else: ok
|
||||
} while ( !ok );
|
||||
|
||||
return dir;
|
||||
}
|
||||
|
||||
#endif // 0
|
||||
|
Reference in New Issue
Block a user