]> git.saurik.com Git - wxWidgets.git/commitdiff
don't compile in wx hash code unless we really use it (#9532:12)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jun 2008 01:53:29 +0000 (01:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jun 2008 01:53:29 +0000 (01:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/hashmap.cpp

index e3742aed7c0755c4d7cc6356d2c81bdb0c728c54..cf0343ed38c22614c79d16491bd50e4ddb2d652c 100644 (file)
@@ -46,7 +46,7 @@ unsigned long wxStringHash::stringHash( const wchar_t* k )
   { return DoStringHash(k); }
 
 
-#if !wxUSE_STL || !defined(HAVE_STL_HASH_MAP)
+#ifdef wxNEEDS_WX_HASH_MAP
 
 /* from SGI STL */
 const unsigned long _wxHashTableBase2::ms_primes[prime_count] =
@@ -139,4 +139,4 @@ _wxHashTable_NodeBase* _wxHashTableBase2::DummyProcessNode(_wxHashTable_NodeBase
     return node;
 }
 
-#endif // !wxUSE_STL || !defined(HAVE_STL_HASH_MAP)
+#endif // wxNEEDS_WX_HASH_MAP