bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] wget 1.11.4 on interix(3.5)


From: Micah Cowan
Subject: Re: [Bug-wget] wget 1.11.4 on interix(3.5)
Date: Fri, 24 Apr 2009 17:01:05 -0700
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hrvoje Niksic wrote:
> Micah Cowan <address@hidden> writes:
> 
>> Hm... well, what about a check for C99 first, and then a fallback on
>> checking for HAVE_STDINT_H?
> 
> Isn't HAVE_STDINT_H a C99 thing?  C89 doesn't seem to mention it.

I thought HAVE_STDINT_H is more a configure-script thing...

By which I mean, yes, <stdint.h> is in C99, and not C89; but the
apparent reason this patch was needed on Interix (and probably on other
platforms as well) is that many environments provide C90 compilers with
extensions (such as stdint.h) borrowed from C99. This would include
GNU/Linux systems, when gcc isn't being invoked in C99 mode.

>> Or, I suppose we could consider assuming an unsigned long is large
>> enough to hold a pointer, and eschew the use of uintptr_t.
> 
> We used to do exactly that, but it doesn't work on Win64.

A most excellent point, of course. And unsigned long long is of course
not C90...

There's the other possibility, of trying to avoid casting a pointer to
an integer type in the first place. I haven't looked much at this code,
though, and honestly probably won't any time real soon.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknyUsEACgkQ7M8hyUobTrGMegCgjoR2Dhq9kmjuNYkXJ/z0OUih
yYsAn0xPDt4YZwWc+2fuZJ3VCwgunW/K
=L8Te
-----END PGP SIGNATURE-----




reply via email to

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