TS-2010: sketchy hack for deprecated hash_map with Xcode 5 Xcode 5 sensible deprecates the old GNU hash_map extensions. Add a sketchy hack to avoid the deprecation warning until I can push my patch to replace this with C++11 standard containers.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/5e2ec325 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/5e2ec325 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/5e2ec325 Branch: refs/heads/master Commit: 5e2ec3252dca395af491a85fee63c7c9461d5761 Parents: f657073 Author: James Peach <[email protected]> Authored: Tue Jul 9 10:14:55 2013 -0600 Committer: James Peach <[email protected]> Committed: Tue Jul 9 10:36:15 2013 -0600 ---------------------------------------------------------------------- proxy/logstats.cc | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/5e2ec325/proxy/logstats.cc ---------------------------------------------------------------------- diff --git a/proxy/logstats.cc b/proxy/logstats.cc index 99e9639..b496102 100644 --- a/proxy/logstats.cc +++ b/proxy/logstats.cc @@ -52,6 +52,7 @@ #include <functional> #include <fcntl.h> +#undef __DEPRECATED // XXX clang hack #define _BACKWARD_BACKWARD_WARNING_H // needed for gcc 4.3 #include <ext/hash_map> #include <ext/hash_set>
