This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: w32api header problems
- From: Bernard Dautrevaux <Dautrevaux at microprocess dot com>
- To: 'Jean le Roux' <jean at infosat dot net>, cygwin at cygwin dot com
- Date: Wed, 9 Jan 2002 13:56:38 +0100
- Subject: RE: w32api header problems
> -----Original Message-----
> From: Jean le Roux [mailto:jean@infosat.net]
> Sent: Wednesday, January 09, 2002 1:38 PM
> To: cygwin@cygwin.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@microprocess.com
b.dautrevaux@usa.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/