This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
make/cygwin 1.1.1
- To: cygwin <cygwin at sourceware dot cygnus dot com>
- Subject: make/cygwin 1.1.1
- From: Olivier BRETTEVILLE <Olivier dot Bretteville at edf dot fr>
- Date: 07 Jun 2000 11:58:07 +0200
I've had a problem with make/cygwin-1.1.1 regarding Makefiles containing lines ending with CR/LF (make doesn't function at all).
I've made the following patch in read.c and all works fine now :
*** make2/src/make/read.c Fri Aug 13 22:10:18 1999
--- make/src/make/read.c Wed Jun 7 09:07:01 2000
***************
*** 2123,2128 ****
--- 2123,2136 ----
p[0] = '\n';
len = 1;
}
+ #if defined (WINDOWS32) || defined (__MSDOS__) || defined (__CYGWIN__)
+ // OB - 07/06/2000 - Suppression des éventuels \r
+ else
+ if (p[len-2] == '\r') {
+ p[len-2] = p[len-1];
+ p[--len] = 0;
+ }
+ #endif
p += len;
if (p[-1] != '\n')
Regards
O. Bretteville
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com