summaryrefslogtreecommitdiff
path: root/audio/amarok/files/patch-amarok_src_atomicstring.h
blob: 1027e66247fe98a7863ca5c8822fa55073a1341b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$FreeBSD$

--- amarok/src/atomicstring.h.orig
+++ amarok/src/atomicstring.h
@@ -34,7 +34,7 @@
 #define AMAROK_ATOMICSTRING_H
 
 #include "config.h"
-#ifdef __GNUC__
+#if __GNUC__ >= 3
     #include <ext/hash_set>
 #else
     #include <set>
@@ -136,12 +136,18 @@
     uint refcount() const;
 
 private:
-    #ifdef __GNUC__
+    #if __GNUC__ >= 3
         struct SuperFastHash;
         struct equal;
         typedef __gnu_cxx::hash_set<QString*, SuperFastHash, equal> set_type;
     #else
-        struct less;
+	struct less
+	{
+	bool operator()( const QString *a, const QString *b ) const
+	{
+	return *a < *b;
+	}
+	};
         typedef std::set<QString*, less> set_type;
     #endif