X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Ffiletools.cpp;h=fbc8711b15b5ef91cd8fff46573169370f5e28e2;hb=10b4a4718539ea45d908dc3d051ae2284f9678e6;hp=310e621e17a406d94e5b0606767ce4b5364e1ba7;hpb=76dfde36d47189cf863eda7982888f6664630a57;p=lyx.git diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index 310e621e17..fbc8711b15 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -51,6 +51,7 @@ #endif #include +#include #include #include @@ -1065,7 +1066,7 @@ cmd_ret const runCommand(string const & cmd) 0, 0, &startup, &process)) { CloseHandle(process.hThread); - int fno = _open_osfhandle((long)in, _O_RDONLY); + int fno = _open_osfhandle((intptr_t)in, _O_RDONLY); CloseHandle(out); inf = _fdopen(fno, "r"); }