This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compile Warnings


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]