Mail Archives: cygwin/2002/01/09/08:06:27
> -----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 -