This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

pre-K&R C trouble recognizing EOF


I am trying again to port some legacy C code (struct) to cygwin. It runs
OK under gcc on Unix and linux, without the -traditional option, which
cygwin doesn't support (const used in stdio.h, for example).  It looks a
lot closer to working than it used to be with cygwin.  The problem
appears to be a failure to recognize EOF, which could well be a problem
comparing a value promoted from char with EOF, which is defined as (-1).
Is this a newlib problem, or does gcc have unsigned char defaults in
cygwin?

Tim Prince


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]