summaryrefslogtreecommitdiff
path: root/Build/source/utils/pmx/pmx-2.7.0/libf2c/patch-03-DOS-line-endings
blob: 2191c6db9829889385884ca702ebfd110a753d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
        Handle DOS line endings (using additional file ../w32getc.c).

        Mail from Akira, 31 Mar 2012 21:36:26.

diff -ur pmx-2.6.18.orig/libf2c/fio.h pmx-2.6.18/libf2c/fio.h
--- pmx-2.6.18.orig/libf2c/fio.h        2012-04-09 18:24:12.000000000 +0200
+++ pmx-2.6.18/libf2c/fio.h     2012-05-19 18:47:56.503874316 +0200
@@ -2,6 +2,10 @@
 #include "sysdep1.h"
 #endif
 #include "stdio.h"
+#ifdef WIN32
+extern int w32getc(FILE *f);
+#define getc w32getc
+#endif
 #include "errno.h"
 #ifndef NULL
 /* ANSI C */