Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
83aba29e
Commit
83aba29e
authored
Jan 07, 2010
by
kenton@google.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect and avoid broken unordered_map on OSX 10.5 / GCC 4.0.1.
parent
2773bdf2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
stl_hash.m4
m4/stl_hash.m4
+7
-1
No files found.
m4/stl_hash.m4
View file @
83aba29e
...
...
@@ -22,8 +22,14 @@ AC_DEFUN([AC_CXX_STL_HASH],
if test -z "$ac_cv_cxx_hash_map_header"; then
# On OSX 1.5 / GCC 4.0.1 (the standard compiler on that platform),
# calling find() on a const unordered_map does not compile. So, we
# include a call to find() in our test to detect this broken
# implementation and avoid using it. Note that ext/hash_map works
# fine on this platform, so we'll end up using that.
AC_TRY_COMPILE([#include <$location>],
[${namespace}::$name<int, int> t],
[const ${namespace}::$name<int, int> t;
t.find(1);],
[ac_cv_cxx_hash_map_header="<$location>";
ac_cv_cxx_hash_namespace="$namespace";
ac_cv_cxx_hash_map_class="$name";])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment