--- plugins/stardict/dictziplib.cpp.gcc 2010-04-30 17:25:26.000000000 +0200 +++ plugins/stardict/dictziplib.cpp 2010-04-30 17:26:44.000000000 +0200 @@ -305,9 +305,11 @@ #ifdef Q_OS_UNIX if (stat(fname.c_str(), &sb) || !S_ISREG(sb.st_mode)) -#elif def Q_OS_WIN32 +#else +#ifdef Q_OS_WIN32 if (_stat(fname.c_str(), &sb) || !(sb.stMode & _S_IFREG)) #endif +#endif { //err_warning( __FUNCTION__, // "%s is not a regular file -- ignoring\n", fname );