mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
fix macos build issue
This commit is contained in:
Vendored
+11
-5
@@ -19,12 +19,18 @@
|
||||
// limitations under the License.
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#include <cstddef>
|
||||
#if defined(__APPLE__)
|
||||
// forward declaration of std::hash does not work on mac. It is not really supposed
|
||||
// to work, I know, but it is nice to reduce the amount of headers included.
|
||||
#include <functional>
|
||||
#else
|
||||
#include <cstddef> // for size_t
|
||||
|
||||
namespace std
|
||||
{
|
||||
template<class Key> struct hash;
|
||||
} // namespace std
|
||||
namespace std
|
||||
{
|
||||
template<class Key> struct hash;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace phmap
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user