bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnulib] Re: gnulib module for uintmax_t? (and best practice questio


From: Simon Josefsson
Subject: [Bug-gnulib] Re: gnulib module for uintmax_t? (and best practice questions)
Date: Tue, 26 Oct 2004 11:58:17 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> Simon Josefsson <address@hidden> writes:
>
>> I used to do this.  But people complained that on 64-bit platforms,
>> 'unsigned int' is not the same width as uint32_t
>
> On the vast majority of 64-bit platforms it is the same width.
> Which platforms were they talking about?

Sorry, I misremembered.  I used to use 'unsigned long', to make sure
it was portably at least 32 bits.

>> The uint32_t is needed in the headers, so the above fragment wouldn't
>> work directly, since config.h can't be assumed.
>
> I'm a bit lost I guess, since I thought your headers included a
> header generated by "configure", and that header could use the
> equivalent of the fragment I quoted without mentioning config.h,
> since it can obtain the value of HAVE_STDINT_H directly.

Hm.  Perhaps it will work.  I'll get back to this once I fix
--import...

Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]