diff -ur ./src_orig/mongo/platform/unordered_map.h ./src/mongo/platform/unordered_map.h
old
|
new
|
|
15 | 15 | |
16 | 16 | #pragma once |
17 | 17 | |
| 18 | // Need for _LIBCPP_VERSION |
| 19 | #include <ciso646> |
| 20 | |
18 | 21 | // NOTE(acm): Before gcc-4.7, __cplusplus is always defined to be 1, |
19 | 22 | // so we can't reliably detect C++11 support by exclusively checking |
20 | 23 | // the value of __cplusplus. |
21 | | #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) |
| 24 | #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(_LIBCPP_VERSION) |
22 | 25 | |
23 | 26 | #include <unordered_map> |
24 | 27 | |
diff -ur ./src_orig/mongo/platform/unordered_set.h ./src/mongo/platform/unordered_set.h
old
|
new
|
|
15 | 15 | |
16 | 16 | #pragma once |
17 | 17 | |
| 18 | // Need for _LIBCPP_VERSION |
| 19 | #include <ciso646> |
| 20 | |
18 | 21 | // NOTE(acm): Before gcc-4.7, __cplusplus is always defined to be 1, |
19 | 22 | // so we can't reliably detect C++11 support by exclusively checking |
20 | 23 | // the value of __cplusplus. |
21 | | #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) |
| 24 | #if __cplusplus >= 201103L || defined(__GXX_EXPERIMENTAL_CXX0X__) || defined(_LIBCPP_VERSION) |
22 | 25 | |
23 | 26 | #include <unordered_set> |
24 | 27 | |
diff -ur ./src_orig/third_party/s2/hash.h ./src/third_party/s2/hash.h
old
|
new
|
|
7 | 7 | #include "mongo/platform/unordered_set.h" |
8 | 8 | #define hash_set mongo::unordered_set |
9 | 9 | |
10 | | #if defined OS_LINUX || defined OS_MACOSX || defined __sunos__ || defined __freebsd__ |
11 | | #define HASH_NAMESPACE_START namespace std { namespace tr1 { |
12 | | #define HASH_NAMESPACE_END }} |
13 | | #elif defined OS_WINDOWS |
| 10 | #if (defined(OS_MACOSX) && defined(_LIBCPP_VERSION)) || defined(OS_WINDOWS) |
14 | 11 | #define HASH_NAMESPACE_START namespace std { |
15 | 12 | #define HASH_NAMESPACE_END } |
| 13 | #elif defined OS_LINUX || defined OS_MACOSX || defined __sunos__ || defined __freebsd__ |
| 14 | #define HASH_NAMESPACE_START namespace std { namespace tr1 { |
| 15 | #define HASH_NAMESPACE_END }} |
16 | 16 | #endif |
17 | 17 | |
18 | 18 | // Places that hash-related functions are defined: |
diff -ur ./src_orig/mongo/db/fts/stemmer.cpp ./src/mongo/db/fts/stemmer.cpp
old
|
new
|
|
17 | 17 | */ |
18 | 18 | |
19 | 19 | #include <string> |
| 20 | #include <cstdlib> |
20 | 21 | |
21 | 22 | #include "mongo/db/fts/stemmer.h" |
22 | 23 | |
diff -ur ./src_orig/mongo/dbtests/documentsourcetests.cpp ./src/mongo/dbtests/documentsourcetests.cpp
old
|
new
|
|
583 | 583 | }; |
584 | 584 | |
585 | 585 | struct ValueCmp { |
586 | | bool operator()(const Value& a, const Value& b) { |
| 586 | bool operator()(const Value& a, const Value& b) const { |
587 | 587 | return Value::compare( a, b ) < 0; |
588 | 588 | } |
589 | 589 | }; |