diff options
author | mark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2014-07-07 19:23:20 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2014-07-07 19:23:20 +0000 |
commit | 21384ad0e252408a050ca86df343f57b6435acb4 (patch) | |
tree | fc656ffa739f589ba39fc1423b77b2073d5e42bb | |
parent | Unhook current Breakpad object after handling uncaught NSException. (diff) | |
download | breakpad-21384ad0e252408a050ca86df343f57b6435acb4.tar.xz |
Fix compilation error in Linux libc++ builds due to use of tr1/.
Patch by Sergey Matveev <earthdok@chromium.org>
BUG=chromium:391792
Review URL: https://breakpad.appspot.com/7674002/
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1345 4c0a9323-5329-0410-9bdc-e9ce6186880e
-rw-r--r-- | src/common/dwarf_cu_to_module.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/dwarf_cu_to_module.cc b/src/common/dwarf_cu_to_module.cc index 297e058d..70d95ca3 100644 --- a/src/common/dwarf_cu_to_module.cc +++ b/src/common/dwarf_cu_to_module.cc @@ -46,7 +46,11 @@ #include <stdio.h> #include <algorithm> +#if defined(_LIBCPP_VERSION) +#include <unordered_set> +#else #include <tr1/unordered_set> +#endif #include <utility> #include "common/dwarf_line_to_module.h" @@ -56,7 +60,11 @@ namespace google_breakpad { using std::map; using std::pair; using std::sort; +#if defined(_LIBCPP_VERSION) +using std::unordered_set; +#else using std::tr1::unordered_set; +#endif using std::vector; // Data provided by a DWARF specification DIE. |