Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <000701bfe7b2$17c059a0$0100000a@TIMYX18EWDT6RQ> From: "Tim Prince" To: Subject: pre-K&R C trouble recognizing EOF Date: Thu, 6 Jul 2000 18:24:26 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.5600 X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.5600 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 AT sourceware DOT cygnus DOT com