patch-src_include_fst_label-reachable_h 595 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-src_include_fst_label-reachable_h,v 1.1 2017/05/07 20:00:26 espie Exp $
  2. Index: src/include/fst/label-reachable.h
  3. --- src/include/fst/label-reachable.h.orig
  4. +++ src/include/fst/label-reachable.h
  5. @@ -23,9 +23,15 @@
  6. #ifndef FST_LIB_LABEL_REACHABLE_H__
  7. #define FST_LIB_LABEL_REACHABLE_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 <vector>
  18. using std::vector;