From c02bf8162981c4b6287098bc33e954519d414326 Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Tue, 21 Sep 2010 22:47:09 +0200 Subject: d3d1x: fix GCC 4.1/4.2 build --- .../state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h b/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h index ab195f1af8a..19ac53e6bd3 100644 --- a/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h +++ b/src/gallium/state_trackers/d3d1x/d3d1xstutil/include/d3d1xstutil.h @@ -781,12 +781,22 @@ namespace std { #endif template<> + struct hash : public std::unary_function + { + inline size_t operator()(GUID __val) const; + }; + inline size_t hash::operator()(GUID __val) const { return raw_hash(__val); } template<> + struct hash : public std::unary_function + { + inline size_t operator()(c_string __val) const; + }; + inline size_t hash::operator()(c_string __val) const { return raw_hash(__val.p, strlen(__val.p)); @@ -795,7 +805,7 @@ namespace std template struct hash > : public std::unary_function, size_t> { - size_t operator()(std::pair __val) const; + inline size_t operator()(std::pair __val) const; }; template -- cgit v1.2.3