X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df5168c427b51f1ab2b3200a5c8f7626b3d24aae..421a84317fc3d53ac4fd64613f1af2d19018efc5:/include/wx/hashmap.h diff --git a/include/wx/hashmap.h b/include/wx/hashmap.h index 554030a564..14d8684f54 100644 --- a/include/wx/hashmap.h +++ b/include/wx/hashmap.h @@ -20,6 +20,10 @@ #include // 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 } }; @@ -571,7 +579,7 @@ public: \ // 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(); \