make/cygwin 1.1.1
Olivier BRETTEVILLE
Olivier.Bretteville@edf.fr
Wed Jun 7 03:00:00 GMT 2000
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
More information about the Cygwin
mailing list