patch-src_include_fst_synchronize_h 783 B

12345678910111213141516171819202122232425262728
  1. $OpenBSD: patch-src_include_fst_synchronize_h,v 1.1 2017/05/07 20:00:26 espie Exp $
  2. Index: src/include/fst/synchronize.h
  3. --- src/include/fst/synchronize.h.orig
  4. +++ src/include/fst/synchronize.h
  5. @@ -22,12 +22,21 @@
  6. #define FST_LIB_SYNCHRONIZE_H__
  7. #include <algorithm>
  8. +#if defined(__clang__) || __cplusplus >= 201103L
  9. +#include<unordered_map>
  10. +using std::unordered_map;
  11. +using std::unordered_multimap;
  12. +#include <unordered_set>
  13. +using std::unordered_set;
  14. +using std::unordered_multiset;
  15. +#else
  16. #include <tr1/unordered_map>
  17. using std::tr1::unordered_map;
  18. using std::tr1::unordered_multimap;
  19. #include <tr1/unordered_set>
  20. using std::tr1::unordered_set;
  21. using std::tr1::unordered_multiset;
  22. +#endif
  23. #include <string>
  24. #include <utility>
  25. using std::pair; using std::make_pair;