From 775462816e2541972d973a18b11c53375ec1a88c Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sun, 13 Oct 2002 11:02:38 +0000 Subject: [PATCH] Another compiler fix for GCC 3.2 Another compiler fix for GCC 3.2.. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/unix/utilsunx.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/unix/utilsunx.cpp b/src/unix/utilsunx.cpp index 445f88b9fa..2b0caccfd9 100644 --- a/src/unix/utilsunx.cpp +++ b/src/unix/utilsunx.cpp @@ -800,7 +800,12 @@ char *wxGetUserHome( const wxString &user ) if ((ptr = wxGetenv(wxT("HOME"))) != NULL) { +#if wxUSE_UNICODE + wxWCharBuffer buffer( ptr ); + return buffer; +#else return ptr; +#endif } if ((ptr = wxGetenv(wxT("USER"))) != NULL || (ptr = wxGetenv(wxT("LOGNAME"))) != NULL) {