X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42e69d6b435a4dd5415caf3750db62cf45b6f373..b23198ab9ef1950e619a219247f124d429001cb4:/src/msw/utils.cpp?ds=sidebyside diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 697de7232a..c9c1d5b68a 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -35,7 +35,7 @@ #include -#if !defined(__GNUWIN32__) && !defined(__SALFORDC__) +#if !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__SALFORDC__) #include #ifndef __MWERKS__ @@ -56,7 +56,7 @@ #include #endif -#ifdef __WIN32__ +#if defined(__WIN32__) && !defined(__WXWINE__) #include #ifndef __GNUWIN32__ @@ -534,11 +534,11 @@ bool wxGetResource(const wxString& section, const wxString& entry, int *value, c #endif // wxUSE_RESOURCES // --------------------------------------------------------------------------- -// helper functiosn for showing a "busy" cursor +// helper functions for showing a "busy" cursor // --------------------------------------------------------------------------- -extern HCURSOR gs_wxBusyCursor = 0; // new, busy cursor -static HCURSOR gs_wxBusyCursorOld = 0; // old cursor +HCURSOR gs_wxBusyCursor = 0; // new, busy cursor +HCURSOR gs_wxBusyCursorOld = 0; // old cursor static int gs_wxBusyCursorCount = 0; // Set the cursor to the busy cursor for all windows @@ -645,7 +645,7 @@ char *wxGetUserHome (const wxString& user) if ((home = getenv("TMP")) != NULL || (home = getenv("TMPDIR")) != NULL || (home = getenv("TEMP")) != NULL) - return *home ? home : "\\"; + return *home ? home : (char*)"\\"; } if (Stricmp(tmp, WXSTRINGCAST user1) == 0) user1 = "";