patch-src_include_fst_replace_h 561 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-src_include_fst_replace_h,v 1.1 2017/05/07 20:00:26 espie Exp $
  2. Index: src/include/fst/replace.h
  3. --- src/include/fst/replace.h.orig
  4. +++ src/include/fst/replace.h
  5. @@ -22,9 +22,15 @@
  6. #ifndef FST_LIB_REPLACE_H__
  7. #define FST_LIB_REPLACE_H__
  8. +#if defined(__clang__) || __cplusplus >= 201103L
  9. +#include<unordered_map>
  10. +using std::unordered_map;
  11. +using std::unordered_multimap;
  12. +#else
  13. #include <tr1/unordered_map>
  14. using std::tr1::unordered_map;
  15. using std::tr1::unordered_multimap;
  16. +#endif
  17. #include <set>
  18. #include <string>
  19. #include <utility>