mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
Merge pull request #108 from johnteslade/unicharset_extractor
Unicharset extractor problems with wchar
This commit is contained in:
commit
896db80f26
@ -411,7 +411,7 @@ AC_CHECK_FUNCS([getline])
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
# ----------------------------------------
|
||||
|
||||
AC_CHECK_TYPES(wchar_t)
|
||||
AC_CHECK_TYPES(wchar_t,,,[#include "wchar.h"])
|
||||
AC_CHECK_TYPES(long long int)
|
||||
AC_CHECK_TYPES(mbstate_t,,,[#include "wchar.h"])
|
||||
|
||||
|
@ -105,6 +105,11 @@ int main(int argc, char** argv) {
|
||||
// Print usage
|
||||
if (argc <= 1) {
|
||||
printf("Usage: %s [-D DIRECTORY] FILE...\n", argv[0]);
|
||||
#ifdef USING_WCTYPE
|
||||
printf("Character properties using wctype is enabled\n");
|
||||
#else
|
||||
printf("WARNING: Character properties using wctype is DISABLED\n");
|
||||
#endif
|
||||
exit(1);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user