X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a8eaaeb23796c69ea0f67cbd48fc5f667d9823d0..04857cb707be4de8083e599fc2e1967c77eb7f5e:/src/common/utilscmn.cpp diff --git a/src/common/utilscmn.cpp b/src/common/utilscmn.cpp index f6195cfeb2..9c60b60e45 100644 --- a/src/common/utilscmn.cpp +++ b/src/common/utilscmn.cpp @@ -17,7 +17,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "utils.h" #endif @@ -293,12 +293,12 @@ int wxGetOsVersion(int *verMaj, int *verMin) if ( ! traits ) traits = &traitsConsole; - wxToolkitInfo *info = traits->GetToolkitInfo(); + wxToolkitInfo& info = traits->GetToolkitInfo(); if ( verMaj ) - *verMaj = info->versionMajor; + *verMaj = info.versionMajor; if ( verMin ) - *verMin = info->versionMinor; - return info->os; + *verMin = info.versionMinor; + return info.os; } // ----------------------------------------------------------------------------