From 61ef57fc5ec21c6561ec4a1f6b68bcc8e7a01b29 Mon Sep 17 00:00:00 2001 From: Ove Kaaven Date: Fri, 16 Apr 1999 11:18:46 +0000 Subject: [PATCH] wxGetUserHome() returns "const wxMB2WXbuf" for Unix in Unicode build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/utils.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/wx/utils.h b/include/wx/utils.h index 2f1bcc7768..ecc35d98e6 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -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