#include <stddef.h> // for ptrdiff_t
+#ifdef __WXWINCE__
+typedef int ptrdiff_t;
+#endif
+
// private
struct WXDLLIMPEXP_BASE _wxHashTable_NodeBase
{
static void** AllocTable( size_t sz )
{
+#ifdef __WXWINCE__
+ return (void **)malloc(sz * sizeof(void*));
+#else
return (void **)calloc(sz, sizeof(void*));
+#endif
}
};
// count on it)!
#define WX_CLEAR_HASH_MAP(type, hashmap) \
{ \
- type##::iterator it, en; \
+ type::iterator it, en; \
for( it = (hashmap).begin(), en = (hashmap).end(); it != en; ++it ) \
delete it->second; \
(hashmap).clear(); \