Merge pull request #108 from johnteslade/unicharset_extractor

Unicharset extractor problems with wchar
This commit is contained in:
zdenop 2015-10-05 21:49:03 +02:00
commit 896db80f26
2 changed files with 6 additions and 1 deletions

View File

@ -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"])

View File

@ -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);
}