summaryrefslogtreecommitdiff
path: root/games/exult/files/patch-hash_utils.h
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-06-19 10:23:25 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-06-19 10:23:25 +0000
commitd6d2de15584d6644d0c831d96ec8d34708638eb9 (patch)
tree6ff9bf6699634f4b1fa77e0adf42cf3a7239ed50 /games/exult/files/patch-hash_utils.h
parent- Fix build with gcc4 (diff)
- Fix build with gcc4
- Support SUB_FILES PR: 113768 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'games/exult/files/patch-hash_utils.h')
-rw-r--r--games/exult/files/patch-hash_utils.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/exult/files/patch-hash_utils.h b/games/exult/files/patch-hash_utils.h
new file mode 100644
index 000000000000..d71fc657ecad
--- /dev/null
+++ b/games/exult/files/patch-hash_utils.h
@@ -0,0 +1,20 @@
+--- hash_utils.h.orig Mon Sep 1 02:32:24 2003
++++ hash_utils.h Thu Jun 14 01:07:42 2007
+@@ -26,7 +26,7 @@
+ #else
+ #if HAVE_EXT_HASH_MAP
+ # include <ext/hash_map>
+-# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0))
++# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0) || (__GNUC__ >= 4)))
+ using __gnu_cxx::hash_map;
+ # else
+ using std::hash_map;
+@@ -44,7 +44,7 @@
+ #else
+ #if HAVE_EXT_HASH_SET
+ # include <ext/hash_set>
+-# if (defined(__GNUC__) && (__GNUC__ == 3) && ( __GNUC_MINOR__ > 0))
++# if (defined(__GNUC__) && ((__GNUC__ == 3) && ( __GNUC_MINOR__ > 0) || (__GNUC__ >= 4)))
+ using __gnu_cxx::hash_set;
+ # else
+ using std::hash_set;