Marko Kreen writes:> On Mon, Jan 08, 2001 at 04:06:09AM +0200, Marko Kreen wrote:> > On Sun, Jan 07, 2001 at 08:09:07PM
-0500,Tom Lane wrote:> > > Marko Kreen <marko@l-t.ee> writes:> > > > Which basically changes u_int*_t -> uint*_t, so
nowit does> > > > not compile neither under Debian 2.2 nor under NetBSD 1.5> > > > which is platform independent¸ all
right.>> > > > > Well, that's annoying. I guess those platforms are out of step> > > with the C99 standard, which
specifiesuint*_t not u_int*_t> > > (cf. C99 7.4.1.1). I agree with your solution of switching to> > >
Postgres-suppliedtypenames.> > > > Well, actually they do. glibc in <stdint.h> and NetBSD in> > <sys/inttypes.h> which
isa 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.
--
Pete Forman -./\.- Disclaimer: This post is originated
WesternGeco -./\.- by myself and does not represent
pete.forman@westerngeco.com -./\.- opinion of Schlumberger, Baker
http://www.crosswinds.net/~petef -./\.- Hughes or their divisions.