Skip to content

Commit 49a7ed1

Browse files
renard314jimregan
authored andcommitted
fix to compile tesseract on mac with clang
1 parent e9f5935 commit 49a7ed1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ccutil/hashfn.h

+5
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ using __gnu_cxx::hash_set;
4747
#include <hash_map>
4848
#include <hash_set>
4949
#endif // gcc
50+
#elif (__clang__)
51+
#include <unordered_map>
52+
#include <unordered_set>
53+
#define hash_map std::unordered_map
54+
#define unordered_set std::unordered_set
5055
#else // USE_STD_NAMESPACE
5156
#include <hash_map>
5257
#include <hash_set>

0 commit comments

Comments
 (0)