X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cf44735628cecb0326b953c4872260f223fc8769..11bc0805dec30cdc07c17cc13d075520efd4e17a:/src/msw/utils.cpp?ds=sidebyside diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 4c4fe57837..b97c5f8575 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -10,8 +10,9 @@ ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ -#pragma implementation -#pragma implementation "utils.h" +// Note: this is done in utilscmn.cpp now. +// #pragma implementation +// #pragma implementation "utils.h" #endif // For compilers that support precompilation, includes "wx.h". @@ -188,8 +189,8 @@ bool wxGetUserName(char *buf, int maxSize) // } #else #if !defined(__WATCOMC__) && !defined(__GNUWIN32__) && USE_PENWINDOWS - extern HANDLE hPenWin; // PenWindows Running? - if (hPenWin) + extern HANDLE g_hPenWin; // PenWindows Running? + if (g_hPenWin) { // PenWindows Does have a user concept! // Get the current owner of the recognizer @@ -364,9 +365,9 @@ int wxGetOsVersion(int *majorVsn, int *minorVsn) # ifdef __WINDOWS_386__ retValue = wxWIN386; # else -# if !defined(__WATCOMC__) && !defined(GNUWIN32) - extern HANDLE hPenWin; - retValue = hPenWin ? wxPENWINDOWS : wxWINDOWS ; +# if !defined(__WATCOMC__) && !defined(GNUWIN32) && USE_PENWINDOWS + extern HANDLE g_hPenWin; + retValue = g_hPenWin ? wxPENWINDOWS : wxWINDOWS ; # endif # endif // @@@@ To be completed. I don't have the manual here... @@ -559,7 +560,7 @@ bool wxCheckForInterrupt(wxWindow *wnd) // MSW only: get user-defined resource from the .res file. // Returns NULL or newly-allocated memory, so use delete[] to clean up. -#ifdef __WINDOWS__ +#ifdef __WXMSW__ char *wxLoadUserResource(const wxString& resourceName, const wxString& resourceType) { char *s = NULL;