fix unused variable warning under non-MSW platforms

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-05-10 02:07:41 +00:00
parent 3fe1a32c22
commit 2fa68e336b

View File

@@ -41,11 +41,7 @@ struct wxRunningEventLoopCounter
~wxRunningEventLoopCounter() { wxRunningEventLoopCount--; } ~wxRunningEventLoopCounter() { wxRunningEventLoopCount--; }
}; };
#else // !__WXMSW__ #endif // __WXMSW__
struct wxRunningEventLoopCounter { };
#endif // __WXMSW__/!__WXMSW__
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// globals // globals
@@ -76,7 +72,9 @@ int wxEventLoopManual::Run()
// should undo // should undo
wxEventLoopActivator activate(wx_static_cast(wxEventLoop *, this)); wxEventLoopActivator activate(wx_static_cast(wxEventLoop *, this));
#if defined(__WXMSW__) && wxUSE_THREADS
wxRunningEventLoopCounter evtLoopCounter; wxRunningEventLoopCounter evtLoopCounter;
#endif // __WXMSW__
// we must ensure that OnExit() is called even if an exception is thrown // we must ensure that OnExit() is called even if an exception is thrown
// from inside Dispatch() but we must call it from Exit() in normal // from inside Dispatch() but we must call it from Exit() in normal