if (fh != INVALID_HANDLE_VALUE) {
int fd = win32_open_osfhandle((long)fh, 0);
if (fd >= 0) {
+#if defined(__BORLANDC__)
+ setmode(fd,O_BINARY);
+#endif
DEBUG_p(PerlIO_printf(Perl_debug_log,
"Created tmpfile=%s\n",filename));
return fdopen(fd, "w+b");