# [PATCH] Use inttypes.h rather than stdint.h.

3 messages from 2007-01-25 to 2007-01-26. Participants: Jason Riedy, Randal L. Schwartz, Simon 'corecode' Schubert.
Thread: https://gitlist.dev/t/6531

## Jason Riedy, 2007-01-25 21:11

Subject: [PATCH] Use inttypes.h rather than stdint.h.
Message-ID: <24182.1169759500@lotus.CS.Berkeley.EDU>
URL: https://gitlist.dev/e/24182.1169759500%40lotus.CS.Berkeley.EDU

```
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.

Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
---
   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(-)

diff --git a/git-compat-util.h b/git-compat-util.h
index bf3ceb8..c1bcb00 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -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
-- 
1.5.0.rc1.g6f729

```

## Randal L. Schwartz, 2007-01-25 21:54

Subject: Re: [PATCH] Use inttypes.h rather than stdint.h.
Message-ID: <868xfqrcvb.fsf@blue.stonehenge.com>
URL: https://gitlist.dev/e/868xfqrcvb.fsf%40blue.stonehenge.com
In-Reply-To: <24182.1169759500@lotus.CS.Berkeley.EDU>

```
>>>>> "Jason" == Jason Riedy <ejr@EECS.Berkeley.EDU> 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.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <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!

```

## Simon 'corecode' Schubert, 2007-01-26 06:55

Subject: Re: [PATCH] Use inttypes.h rather than stdint.h.
Message-ID: <45B9A5CA.1020801@fs.ei.tum.de>
URL: https://gitlist.dev/e/45B9A5CA.1020801%40fs.ei.tum.de
In-Reply-To: <24182.1169759500@lotus.CS.Berkeley.EDU>

```
Jason Riedy wrote:
> 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.

my appologies for not researching enough.  thanks for this correction.

cheers
  simon

-- 
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   / \


```
