Re: patch: contrib/pgcrypto sanity

From: Marko Kreen <marko(at)l-t(dot)ee>
To: Pete Forman <pete(dot)forman(at)westerngeco(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: patch: contrib/pgcrypto sanity
Date: 2001-01-08 11:32:53
Message-ID: 20010108133253.A19597@l-t.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jan 08, 2001 at 10:03:25AM +0000, Pete Forman wrote:
> Marko Kreen writes:
> > On Mon, Jan 08, 2001 at 04:06:09AM +0200, Marko Kreen wrote:
> > > Well, actually they do. glibc in <stdint.h> and NetBSD in
> > > <sys/inttypes.h> which is a mess, all rigth. Problem is that
> > > postgres.h does not know about this. I guess that C99 forgot to
> > > specify _where_ they should be defined.
> >
> > Correction, they both have <inttypes.h> which probably is the right
> > location for this.
>
> <stdint.h> is adequate to pick up uint*_t. <inttypes.h> is defined to
> include <stdint.h>. Of course all this C99 stuff is new and existing
> implementations may have the typedefs in different files or not have
> them at all.

But as I said, NetBSD does not have it. So what is the
correct/portable/standard location for it? Can anyone with C99
standard in hand find that out?

E.g. Tom Lane has some OS where these types are in
std{io|lib|def|arg} but on NetBSD and glibc/Linux you must include
separate header file for them.

--
marko

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message The Hermit Hacker 2001-01-08 14:28:18 Re: heap_update is broken in current sources
Previous Message Pete Forman 2001-01-08 11:16:00 Re: pg_dump return status..