]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use the VC6 workaround in wxList with newer versions of VC
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 14 Apr 2007 11:04:30 +0000 (11:04 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 14 Apr 2007 11:04:30 +0000 (11:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/list.h

index ad0e88f93d8f2d1c365e487685da3db23fd74add..289d762b58c5283d0eaf7a8721fce8e23e32cc35 100644 (file)
@@ -93,7 +93,7 @@ enum wxKeyType
 #define WX_DECLARE_LIST_WITH_DECL(elT, liT, decl) \
     WX_DECLARE_LIST_XO(elT*, liT, decl)
 
-#if !defined( __VISUALC__ )
+#if !defined(__VISUALC__) || __VISUALC__ >= 1300 // == !VC6
 
 template<class T>
 class WXDLLIMPEXP_BASE wxList_SortFunction
@@ -109,7 +109,7 @@ private:
 #define WX_LIST_SORTFUNCTION( elT, f ) wxList_SortFunction<elT>(f)
 #define VC6_WORKAROUND(elT, liT, decl)
 
-#else // if defined( __VISUALC__ )
+#else // if defined( __VISUALC__ ) && __VISUALC__ < 1300 // == VC6
 
 #define WX_LIST_SORTFUNCTION( elT, f ) std::greater<elT>( f )
 #define VC6_WORKAROUND(elT, liT, decl)                                        \
@@ -133,7 +133,7 @@ private:
                 }                                                             \
     };
 
-#endif // defined( __VISUALC__ )
+#endif // VC6/!VC6
 
 /*
     Note 1: the outer helper class _WX_LIST_HELPER_##liT below is a workaround