]> git.saurik.com Git - wxWidgets.git/commitdiff
const char *wxGetHomeDir(wxString*) added
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Sep 1998 08:45:40 +0000 (08:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 7 Sep 1998 08:45:40 +0000 (08:45 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/utils.h

index ed0115dc82e41c70dba922b9fb7492a38b017c3a..b4739ed9217cc4844ec909577be31029a2a94e20 100644 (file)
@@ -249,11 +249,9 @@ bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, l
 bool WXDLLEXPORT wxGetResource(const wxString& section, const wxString& entry, int *value, const wxString& file = "");
 #endif // USE_RESOURCES
 
-#ifdef __UNIX__
-// 'X' Only, will soon vanish....
-// Get current Home dir and copy to dest
-char* WXDLLEXPORT wxGetHomeDir( char *dest );
-#endif
+// Get current Home dir and copy to dest (returns pstr->c_str())
+const char* WXDLLEXPORT wxGetHomeDir(wxString *pstr);
+
 // Get the user's home dir (caller must copy--- volatile)
 // returns NULL is no HOME dir is known
 char* WXDLLEXPORT wxGetUserHome(const wxString& user = "");