diff -urN poppler-0.15.3/poppler/PDFDoc.cc poppler-0.15.3.win32.patches/poppler/PDFDoc.cc --- poppler-0.15.3/poppler/PDFDoc.cc 2010-11-08 21:45:24.000000000 +0100 +++ poppler-0.15.3.win32.patches/poppler/PDFDoc.cc 2010-12-18 12:49:35.656250000 +0100 @@ -178,17 +178,17 @@ // try to open file // NB: _wfopen is only available in NT - struct stat buf; + struct _stat buf; int size; version.dwOSVersionInfoSize = sizeof(version); GetVersionEx(&version); if (version.dwPlatformId == VER_PLATFORM_WIN32_NT) { - if (_wstat(fileName2, &buf) == 0) { + if (_wstat((const wchar_t *) fileName2, &buf) == 0) { size = buf.st_size; } file = _wfopen(fileName2, L"rb"); } else { - if (_wstat(fileName->getCString(), &buf) == 0) { + if (_stat(fileName->getCString(), &buf) == 0) { size = buf.st_size; } file = fopen(fileName->getCString(), "rb");