]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/hashmap.h
removed OnIdle() which didn't compile any longer
[wxWidgets.git] / include / wx / hashmap.h
index 554030a5648722af119924918f820315b618f0ad..14d8684f5446e12ef2815dc6cffba4da6cf81fe2 100644 (file)
 
 #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
     }
 };
 
@@ -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();                                                   \