Skip to content

Commit

Permalink
Merge pull request #24 from tesseract-ocr/hashfn-clang
Browse files Browse the repository at this point in the history
fix to compile tesseract with clang
  • Loading branch information
zdenop committed Aug 21, 2015
2 parents b7cec01 + 49a7ed1 commit cb05aba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ccutil/hashfn.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ using __gnu_cxx::hash_set;
#include <hash_map>
#include <hash_set>
#endif // gcc
#elif (__clang__)
#include <unordered_map>
#include <unordered_set>
#define hash_map std::unordered_map
#define unordered_set std::unordered_set
#else // USE_STD_NAMESPACE
#include <hash_map>
#include <hash_set>
Expand Down

0 comments on commit cb05aba

Please sign in to comment.