diff -aurN 0004/src/tools/hunspell.cxx 0005/src/tools/hunspell.cxx --- 0004/src/tools/hunspell.cxx +++ 0005/src/tools/hunspell.cxx @@ -104,6 +104,12 @@ #endif #define PATHSEP ";" +#ifdef __MINGW32__ +#include +#include +#include +#include +#endif #include "textparser.hxx" #include "htmlparser.hxx" #include "latexparser.hxx" @@ -1812,7 +1818,7 @@ return NULL; } -#ifndef WIN32 +#if !defined(WIN32) || defined(__MINGW32__) int listdicpath(char* dir, int len) { std::string buf; const char* sep = (len == 0) ? "" : DIRSEP; @@ -1847,7 +1853,7 @@ if (name) { res = exist2(begin, end - begin, name, ext); } else { -#ifndef WIN32 +#if !defined(WIN32) || defined(__MINGW32__) listdicpath(begin, end - begin); #endif }