Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <17B78BDF120BD411B70100500422FC6309E411@IIS000> From: Bernard Dautrevaux To: "'Jean le Roux'" , cygwin AT cygwin DOT com Subject: RE: w32api header problems Date: Wed, 9 Jan 2002 13:56:38 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" > -----Original Message----- > From: Jean le Roux [mailto:jean AT infosat DOT net] > Sent: Wednesday, January 09, 2002 1:38 PM > To: cygwin AT cygwin DOT com > Subject: Re: w32api header problems > > > > int max(const int value_a, const int value_b); //line 283 > > int min(const int value_a, const int value_b); //line 284 > > string itoa(const int value, const short fix=0); //line 285 > ... > > > common.h:284: parse error before `const' > > common.h:285: parse error before `const' > > > Woops.. those line numbers are 1 out .. > > > int max(const int value_a, const int value_b); //line 283 > > should be 284 > > Appologies to all. #undef'ing min and max before declaring them is something I've been used to do due to several environments insisting to "#define min(a, b) ((a) < (b) ? (a) : (b))" and the like for max, instead of th ecustomary MIN and MAX names... :-) HTH Bernard -------------------------------------------- Bernard Dautrevaux Microprocess Ingenierie 97 bis, rue de Colombes 92400 COURBEVOIE FRANCE Tel: +33 (0) 1 47 68 80 80 Fax: +33 (0) 1 47 88 97 85 e-mail: dautrevaux AT microprocess DOT com b DOT dautrevaux AT usa DOT net -------------------------------------------- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/