]> git.saurik.com Git - wxWidgets.git/commit
Compilation fix for wxStopWatch with wxUSE_THREADS==0.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 15 Dec 2011 21:13:03 +0000 (21:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 15 Dec 2011 21:13:03 +0000 (21:13 +0000)
commit0c717dd16bc89fbe772d6651328405a12ada797a
treec98fdede76f713d3e036f972d741046957f1e5e8
parent5dec941a5ba3c08870ab4b415dd6e5be368fa0f0
Compilation fix for wxStopWatch with wxUSE_THREADS==0.

Use wxCRIT_SECT_DECLARE_MEMBER/wxCRIT_SECT_LOCKER macros which expand to
nothing in wxUSE_THREADS==0 case instead of using wxCriticalSection[Locker]
classes which are not defined then.

Also explicitly include wx/thread.h.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/stopwatch.cpp