]> git.saurik.com Git - wxWidgets.git/commitdiff
wxGetUserHome() returns "const wxMB2WXbuf" for Unix in Unicode build.
authorOve Kaaven <ovek@arcticnet.no>
Fri, 16 Apr 1999 11:18:46 +0000 (11:18 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Fri, 16 Apr 1999 11:18:46 +0000 (11:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/utils.h

index 2f1bcc7768476dd1327ffaea33fafe142cec2111..ecc35d98e64d14ce1b12a573c225967d5c4dfc2f 100644 (file)
@@ -205,7 +205,11 @@ WXDLLEXPORT const wxChar* wxGetHomeDir(wxString *pstr);
 
 // Get the user's home dir (caller must copy --- volatile)
 // returns NULL is no HOME dir is known
+#if defined(__UNIX__) && wxUSE_UNICODE
+WXDLLEXPORT const wxMB2WXbuf wxGetUserHome(const wxString& user = wxEmptyString);
+#else
 WXDLLEXPORT wxChar* wxGetUserHome(const wxString& user = wxEmptyString);
+#endif
 
 // ----------------------------------------------------------------------------
 // Strip out any menu codes