Use inttypes.h rather than stdint.h.
PATCH 1/1 Use inttypes.h rather than stdint.h.
Older Solaris machines lack stdint.h but have inttypes.h. The standard has inttypes.h including stdint.h, so at worst this pollutes the namespace a bit.
---
There's a simple work-around (-I. and a symlink), so I'll understand if this is dropped for being too damn stupid. But I'm pretty sure Solaris 5.8 is still widespread (relatively speaking).
git-compat-util.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
git-compat-util.h +1 -1
@@ -46,7 +46,7 @@#include <arpa/inet.h> #include <netdb.h> #include <pwd.h> -#include <stdint.h> +#include <inttypes.h> #undef _ALL_SOURCE/* AIX 5.3L defines a struct list with _ALL_SOURCE. */ #include <grp.h> #define _ALL_SOURCE 1
Signature · 1 line
1.5.0.rc1.g6f729
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jason" == Jason Riedy <[email protected]> writes:
Jason> Older Solaris machines lack stdint.h but have inttypes.h. Jason> The standard has inttypes.h including stdint.h, so at worst Jason> this pollutes the namespace a bit.
Heh... I just ran into this for $client. Nice.
Signature · 4 lines
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Quoted 3 lines · Jason Riedy
Older Solaris machines lack
stdint.hbut haveinttypes.h. The standard hasinttypes.hincludingstdint.h, so at worst this pollutes the namespace a bit.
my appologies for not researching enough. thanks for this correction.
cheers
simon
Signature · 4 lines
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \