fix macos build issue

This commit is contained in:
greg
2019-03-31 11:59:32 -04:00
parent 80f29e9932
commit e8a16d9908
2 changed files with 12 additions and 6 deletions
+11 -5
View File
@@ -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
{