Correct fix to the compile time assert under OW. Kudos to Vadim to the tip.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-10-20 01:20:58 +00:00
parent 8e5d510855
commit 1c6f24145e
6 changed files with 67 additions and 61 deletions

View File

@@ -32,10 +32,6 @@
#undef Yield
#endif
#ifdef __WXMSW__
#include "wx/msw/wrapwin.h"
#endif
// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------
@@ -247,7 +243,8 @@ private:
// include windows.h from this public header and we also have to use the
// union to force the correct (i.e. maximal) alignment
//
// if CRITICAL_SECTION size changes in Windows, you'll get an assert below
// if CRITICAL_SECTION size changes in Windows, you'll get an assert from
// thread.cpp and will need to increase the buffer size
//
// finally, we need this typedef instead of declaring m_buffer directly
// because otherwise the assert mentioned above wouldn't compile with some
@@ -257,10 +254,6 @@ private:
#else // __WIN32__
typedef char wxCritSectBuffer[24];
#endif
wxCOMPILE_TIME_ASSERT( sizeof(CRITICAL_SECTION) <= sizeof(wxCritSectBuffer),
wxCriticalSectionBufferTooSmall );
union
{
unsigned long m_dummy1;