X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a1442719af5c68a8605f093f40362fd08b2f4ec..fd323a5e230f2b08227b307ff900698fb85d5519:/src/msw/utils.cpp?ds=sidebyside diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 3a114037d9..877a9b4aca 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -36,7 +36,9 @@ #ifndef __GNUWIN32__ #include +#ifndef __MWERKS__ #include +#endif #endif //GNUWIN32 #ifdef __GNUWIN32__ @@ -389,7 +391,7 @@ int wxGetOsVersion(int *majorVsn, int *minorVsn) if (majorVsn) *majorVsn = 0; if (minorVsn) *minorVsn = 0; -#ifdef WIN32 +#if defined(__WIN32__) && !defined(__SC__) OSVERSIONINFO info; memset(&info, 0, sizeof(OSVERSIONINFO)); info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); @@ -413,7 +415,7 @@ int wxGetOsVersion(int *majorVsn, int *minorVsn) return wxWINDOWS; // error if we get here, return generic value #else // Win16 code... - int retValue ; + int retValue = 0; # ifdef __WINDOWS_386__ retValue = wxWIN386; # else @@ -979,7 +981,9 @@ To download dbwin32, see e.g.: http://ftp.digital.com/pub/micro/NT/WinSite/programr/dbwin32.zip */ +#ifndef __MWERKS__ #include +#endif void OutputDebugStringW95(const char* lpOutputString, ...) { @@ -1056,7 +1060,7 @@ void OutputDebugStringW95(const char* lpOutputString, ...) WaitForSingleObject(heventDBWIN, INFINITE); /* write it to the shared memory */ -#ifdef __BORLANDC__ +#if defined( __BORLANDC__ ) || defined( __MWERKS__ ) *((LPDWORD)lpszSharedMem) = getpid(); #else *((LPDWORD)lpszSharedMem) = _getpid();