]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/hashmap.cpp
Fix memory leak by letting the base class version handle the
[wxWidgets.git] / src / common / hashmap.cpp
index 19a385d4511bbeefb7062a8472043757340ab59f..8f941c727590f8ee84c7ef172659279a86dfb30b 100644 (file)
@@ -6,10 +6,10 @@
 // Created:     29/01/2002
 // RCS-ID:      $Id$
 // Copyright:   (c) Mattia Barbon
-// Licence:     wxWindows licence
+// Licence:     wxWidgets licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "hashmap.h"
 #endif
 
@@ -60,6 +60,8 @@ unsigned long wxStringHash::charStringHash( const char* k )
 }
 #endif
 
+#if !wxUSE_STL || !defined(HAVE_STL_HASH_MAP)
+
 /* from SGI STL */
 const unsigned long _wxHashTableBase2::ms_primes[prime_count] =
 {
@@ -151,3 +153,4 @@ _wxHashTable_NodeBase* _wxHashTableBase2::DummyProcessNode(_wxHashTable_NodeBase
     return node;
 }
 
+#endif // !wxUSE_STL || !defined(HAVE_STL_HASH_MAP)