--- tcc.c	Mon Jul  4 23:55:46 2005
+++ tcc.c	Mon Jul  4 23:56:12 2005
@@ -1827,6 +1864,7 @@
 {
     int fd;
     BufferedFile *bf;
+    int i;
 
     fd = open(filename, O_RDONLY | O_BINARY);
     if (fd < 0)
@@ -1841,6 +1881,9 @@
     bf->buf_end = bf->buffer;
     bf->buffer[0] = CH_EOB; /* put eob symbol */
     pstrcpy(bf->filename, sizeof(bf->filename), filename);
+    for (i = 0; i < strlen(bf->filename); i++)
+        if (bf->filename[i] == '\\')
+            bf->filename[i] = '/';
     bf->line_num = 1;
     bf->ifndef_macro = 0;
     bf->ifdef_stack_ptr = s1->ifdef_stack_ptr;
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to