Mark Kettenis wrote:
>> Date: Wed, 21 Oct 2009 23:56:46 -0400
>> From: Eamon Walsh <[email protected]>
>>
>>>> I would love love love to see us move entirely to stdint types instead
>>>> of the mess we've got now.
>>> Yes. Yes yes yes.
>> I have a patch sitting around that does this, guess I'll float it.
>
> Hmm, isn't this going to weak havoc for C++? If I read your diff
> correctly, it'll change from
>
> typedef unsigned long XID;
>
> into what's effectively
>
> typedef uint32_t XID;
>
> on 32-bit systems.
>
> Now if your system defines uint32_t as:
>
> typedef unsigned int uint32_t;
>
> this will change how C++ functions that take an XID as one of its
> arguments are magled, causing major ABI breakage.
Isn't this solved in the traditional way by adding:

#ifdef __cplusplus
extern "C" {
#endif
...
#ifdef __cplusplus
}
#endif

Barry


p.s. (second send to get all)

_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to