Win64 compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,11 +18,14 @@
|
||||
// wxSelectedIndices is just a sorted array of indices
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
inline int CMPFUNC_CONV wxSizeTCmpFn(size_t n1, size_t n2) { return n1 - n2; }
|
||||
inline int CMPFUNC_CONV wxSizeTCmpFn(size_t n1, size_t n2)
|
||||
{
|
||||
return (int)(n1 - n2);
|
||||
}
|
||||
|
||||
WX_DEFINE_SORTED_EXPORTED_ARRAY_CMP_LONG(size_t,
|
||||
wxSizeTCmpFn,
|
||||
wxSelectedIndices);
|
||||
WX_DEFINE_SORTED_EXPORTED_ARRAY_CMP_SIZE_T(size_t,
|
||||
wxSizeTCmpFn,
|
||||
wxSelectedIndices);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxSelectionStore is used to store the selected items in the virtual
|
||||
|
@@ -249,7 +249,11 @@ private:
|
||||
// finally, we need this typedef instead of declaring m_buffer directly
|
||||
// because otherwise the assert mentioned above wouldn't compile with some
|
||||
// compilers (notably CodeWarrior 8)
|
||||
#ifdef __WIN64__
|
||||
typedef char wxCritSectBuffer[40];
|
||||
#else // __WIN32__
|
||||
typedef char wxCritSectBuffer[24];
|
||||
#endif
|
||||
union
|
||||
{
|
||||
unsigned long m_dummy1;
|
||||
|
Reference in New Issue
Block a user