Some WinCE fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -20,6 +20,10 @@
|
||||
|
||||
#include <stddef.h> // for ptrdiff_t
|
||||
|
||||
#ifdef __WXWINCE__
|
||||
typedef int ptrdiff_t;
|
||||
#endif
|
||||
|
||||
// private
|
||||
struct WXDLLIMPEXP_BASE _wxHashTable_NodeBase
|
||||
{
|
||||
@@ -70,7 +74,11 @@ protected:
|
||||
|
||||
static void** AllocTable( size_t sz )
|
||||
{
|
||||
#ifdef __WXWINCE__
|
||||
return (void **)malloc(sz * sizeof(void*));
|
||||
#else
|
||||
return (void **)calloc(sz, sizeof(void*));
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user