X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5815e95907dbecbac1e6d4d9cf3290f8d36eca48..09981ba7981297056da49ceb0eb85d3ac9fc5f6f:/src/osx/core/utilsexc_base.cpp diff --git a/src/osx/core/utilsexc_base.cpp b/src/osx/core/utilsexc_base.cpp index fe8b87c45e..e3e9f996bc 100644 --- a/src/osx/core/utilsexc_base.cpp +++ b/src/osx/core/utilsexc_base.cpp @@ -64,14 +64,14 @@ extern bool WXDLLEXPORT wxIsDebuggerRunning() // have a fast version for mac code that returns the version as a return value -long UMAGetSystemVersion() -{ +long UMAGetSystemVersion() +{ static SInt32 sUMASystemVersion = 0 ; if ( sUMASystemVersion == 0 ) { verify_noerr(Gestalt(gestaltSystemVersion, &sUMASystemVersion)); } - return sUMASystemVersion ; + return sUMASystemVersion ; } // our OS version is the same in non GUI and GUI cases @@ -101,8 +101,6 @@ wxString wxGetOsDescription() wxString::FromAscii(name.machine).c_str()); } -#endif // wxOSX_USE_COCOA_OR_CARBON - //=========================================================================== // IMPLEMENTATION //=========================================================================== @@ -286,3 +284,4 @@ bool wxMacLaunch(char **argv) return true ; } +#endif // wxOSX_USE_COCOA_OR_CARBON