fixed compilation with CW8 (SF patch 567845) and also added alignment fillers for wxCriticalSection::m_buffer

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-06-20 22:33:22 +00:00
parent 1420518999
commit dac348b9e2
2 changed files with 15 additions and 3 deletions

View File

@@ -132,7 +132,7 @@ static bool gs_waitingForThread = FALSE;
wxCriticalSection::wxCriticalSection()
{
wxCOMPILE_TIME_ASSERT( sizeof(CRITICAL_SECTION) <= sizeof(m_buffer),
wxCOMPILE_TIME_ASSERT( sizeof(CRITICAL_SECTION) <= sizeof(wxCritSectBuffer),
wxCriticalSectionBufferTooSmall );
::InitializeCriticalSection((CRITICAL_SECTION *)m_buffer);