#ifdef STDC_HEADERS
#include <stdlib.h>
#endif
+
+#if 0 /* That is untrue--XINT is used below, and it uses INTBITS.
+ What in the world is values.h, anyway? */
+#ifdef MSDOS
+/* These are redefined in <values.h> and not used here */
+#undef INTBITS
+#undef LONGBITS
+#undef SHORTBITS
+#endif
+#endif
+
#include <math.h>
#endif /* LISP_FLOAT_TYPE */
/* 1 means inhibit the message at the beginning. */
int nomessage1 = 0;
Lisp_Object handler;
+#ifdef MSDOS
+ char *dosmode = "rt";
+#endif
CHECK_STRING (str, 0);
str = Fsubstitute_in_file_name (str);
struct stat s1, s2;
int result;
+#ifdef MSDOS
+ dosmode = "rb";
+#endif
stat (XSTRING (found)->data, &s1);
XSTRING (found)->data[XSTRING (found)->size - 1] = 0;
result = stat (XSTRING (found)->data, &s2);
XSTRING (found)->data[XSTRING (found)->size - 1] = 'c';
}
+#ifdef MSDOS
+ close (fd);
+ stream = fopen ((char *) XSTRING (found)->data, dosmode);
+#else
stream = fdopen (fd, "r");
+#endif
if (stream == 0)
{
close (fd);
#ifdef VMS
|| index (s, ':')
#endif /* VMS */
+#ifdef MSDOS /* MW, May 1993 */
+ || (s[0] != '\0' && s[1] == ':' && s[2] == '/')
+#endif
);
}