]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dynarray.h
1. Win9x support + async dialing + many more for wxDialUpManager
[wxWidgets.git] / include / wx / dynarray.h
index 34aaff0a2bf25abc6bcae7c286c52d3a9f6a8990..9f8f7a3ad027e44b6549a75ca791eed38affd204 100644 (file)
  callback compare function for quick sort
  must return negative value, 0 or positive value if pItem1 <, = or > pItem2
  */
-
-#if defined(__VISUALC__)
-  #define   CMPFUNC_CONV    _cdecl
-#elif defined(__VISAGECPP__)
-  #define   CMPFUNC_CONV    _Optlink
-#else   // !Visual C++
-  #define   CMPFUNC_CONV
-#endif  // compiler
-typedef int (CMPFUNC_CONV *CMPFUNC)(const void* pItem1, const void* pItem2);
+typedef int (wxCMPFUNC_CONV *CMPFUNC)(const void* pItem1, const void* pItem2);
 
 // ----------------------------------------------------------------------------
 /**
@@ -177,7 +169,7 @@ public:                                                             \
   {                                                                 \
     size_t type = sizeof(T);                                        \
     size_t sizelong = sizeof(long);                                 \
-    if ( type <= sizelong )                                         \
+    if ( type > sizelong )                                          \
       { wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); }          \
   }                                                                 \
                                                                     \
@@ -239,7 +231,7 @@ public:                                                             \
   name(SCMPFUNC##T fn)                                              \
   { size_t type = sizeof(T);                                        \
     size_t sizelong = sizeof(long);                                 \
-    if ( type <= sizelong )                                         \
+    if ( type > sizelong )                                          \
       { wxFAIL_MSG( _T("illegal use of DEFINE_ARRAY") ); }          \
     m_fnCompare = fn;                                               \
   }                                                                 \