This is the mail archive of the
xconq7@sources.redhat.com
mailing list for the Xconq project.
Re: Compile Warnings
- From: Hans Ronne <hronne at comhem dot se>
- To: Eric McDonald <mcdonald at phy dot cmich dot edu>
- Cc: xconq7 at sources dot redhat dot com
- Date: Tue, 11 May 2004 01:12:11 +0200
- Subject: Re: Compile Warnings
- References: <l03130301bcc5b549adbb@[212.181.162.155]>
>> In fact, those unsigned chars were added two years ago, as part of the C++
>> compatibility patches:
>
>You mean changed from 'unsigned char' to 'char'.
Yes, of course.
>We can humor both pedantic ANSI C and C++ by doing something like
>the following:
>
>#ifdef __cplusplus
>#define BMAP_BYTE char
>#else
>#define BMAP_BYTE unsigned char
>#endif
>
>and then use BMAP_BYTE for the type.
And hack every bitmap file again? There must be a simpler way. Xconq can't
be the first program in history that uses bitmaps and retains both C and
C++ compatibility.
Hans