[Mono-devel-list] Compiler Warnings..

Chris Ridd chris.ridd at isode.com
Thu Dec 2 05:14:04 EST 2004

On 1/12/04 5:31 pm, Willibald Krenn <Willibald.Krenn at gmx.at> wrote:

>>>> C99's <stdint.h> header defines some symbols like this (intptr_t and
>>>> uintptr_t); wouldn't it be better to use those if possible?
>>> Ah, didn't know about these.. Just one question: Are these headers
>>> available everywhere?
>> Sadly you can't rely on them being everywhere. Autoconf to the rescue?
> As I don't have enough knowledge in that area (what do if not
> available?) I let the community decide.. :-)
> Choices are:
> a.) forget about the patch
> b.) implement with global header (as-is)
> c.) use stdint.h and - well, do what(?) in case this file is to no avail..
> d.) other ideas?

Maybe using your new header is OK, but it should use #ifdef HAVE_STDINT_H
internally to get the right platform definitions. You should also rename
your types to match the ones in stdint.h. Sort of b and c together.

But I don't really know what approach the mono folks use to keep the build
portable, so maybe someone who knows this should answer?



More information about the Mono-devel-list mailing list