#include "wx/app.h"
#include "wx/msgdlg.h"
#include "wx/cursor.h"
+#include "wx/window.h" // for wxTopLevelWindows
#include <ctype.h>
#include <stdarg.h>
static char *GetIniFile (char *dest, const char *filename);
-extern wxList wxTopLevelWindows;
-
// ============================================================================
// implementation
// ============================================================================
size_t len;
environment = GetIniFile (filename, NULL);
len = strlen (environment);
- wxString hostname;
- if ( wxGetHostName(hostname) )
+ wxString hostname = wxGetHostName();
+ if ( !!hostname )
strncat(environment, hostname, 1024 - len);
}
homeDB = XrmGetFileDatabase (environment);