delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/09/08:06:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <17B78BDF120BD411B70100500422FC6309E411@IIS000>
From: Bernard Dautrevaux <Dautrevaux AT microprocess DOT com>
To: "'Jean le Roux'" <jean AT infosat DOT net>, 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)

> -----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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019