From: Stefan Csomor Date: Wed, 19 May 2010 13:38:19 +0000 (+0000) Subject: moving wxMacWakeUp outside COCOA_CARBON clause, fixes #12068 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/508610f08146d1c9cd11aa4f97678b086ca1a9a9?ds=sidebyside moving wxMacWakeUp outside COCOA_CARBON clause, fixes #12068 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/utils_osx.cpp b/src/osx/utils_osx.cpp index 9b6eeaa80e..4764ec07a0 100644 --- a/src/osx/utils_osx.cpp +++ b/src/osx/utils_osx.cpp @@ -64,6 +64,18 @@ bool wxColourDisplay() return true; } +#if wxUSE_BASE + +void wxMacWakeUp() +{ + wxEventLoopBase * const loop = wxEventLoopBase::GetActive(); + + if ( loop ) + loop->WakeUp(); +} + +#endif + #if wxOSX_USE_COCOA_OR_CARBON // Returns depth of screen int wxDisplayDepth() @@ -83,18 +95,6 @@ void wxDisplaySize(int *width, int *height) *height = (int)bounds.size.height; } -#if wxUSE_BASE - -void wxMacWakeUp() -{ - wxEventLoopBase * const loop = wxEventLoopBase::GetActive(); - - if ( loop ) - loop->WakeUp(); -} - -#endif - #if wxUSE_GUI // ----------------------------------------------------------------------------