]> git.saurik.com Git - wxWidgets.git/commitdiff
Wine fixes
authorJulian Smart <julian@anthemion.co.uk>
Sun, 12 Nov 2006 15:39:12 +0000 (15:39 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 12 Nov 2006 15:39:12 +0000 (15:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/utils.h
src/msw/utils.cpp

index 499f2bad0f04219af330c552eee5ac0314f60abd..91863a219aee3581a0ff25d7576afa3c68788fd6 100644 (file)
@@ -518,7 +518,7 @@ WXDLLIMPEXP_BASE 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
+#if defined(__UNIX__) && wxUSE_UNICODE && !defined(__WINE__)
 WXDLLIMPEXP_BASE const wxMB2WXbuf wxGetUserHome(const wxString& user = wxEmptyString);
 #else
 WXDLLIMPEXP_BASE wxChar* wxGetUserHome(const wxString& user = wxEmptyString);
index 6eff2fe2536ba5dd69c0e892bed5b628376b47c5..7ded6a5d18e0e93e42f00ebe5008b9ee5ab16c17 100644 (file)
@@ -387,7 +387,7 @@ const wxChar* wxGetHomeDir(wxString *pstr)
     wxString& strDir = *pstr;
 
     // first branch is for Cygwin
-#if defined(__UNIX__)
+#if defined(__UNIX__) && !defined(__WINE__)
     const wxChar *szHome = wxGetenv("HOME");
     if ( szHome == NULL ) {
       // we're homeless...