Re: Fix compiler warnings on 64-bit Windows - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Fix compiler warnings on 64-bit Windows
Date
Msg-id 4120.1581954733@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fix compiler warnings on 64-bit Windows  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Fix compiler warnings on 64-bit Windows
List pgsql-hackers
I wrote:
> Ooops.  Poking around, it looks like this version of gcc has brought its
> own stdbool.h, but not stdint.h:
> ...
> Kind of annoying.  Perhaps more recent gcc versions fixed that?

Here we go, in the gcc 4.5.x release notes:

    GCC now ensures that a C99-conforming <stdint.h> is present on most
    targets, and uses information about the types in this header to
    implement the Fortran bindings to those types. GCC does not ensure the
    presence of such a header, and does not implement the Fortran
    bindings, on the following targets: NetBSD, VxWorks, VMS, SymbianOS,
    WinCE, LynxOS, Netware, QNX, Interix, TPF.

4.5 seems annoyingly recent for this purpose (barely 10 years old).
Also, I'd previously tried and failed to use 4.2.4 and 4.0.4 on that
platform --- they didn't seem to be able to cope with the old header
files.  (Now I wonder if the lack of stdint.h had something to do
with it... although those versions did build, they just were buggy.)

Anyway, I'll have a go at updating gaur to use 4.5.x.  There is a
sane-looking stdint.h on my second-oldest dinosaur, prairiedog.
Don't know about the situation on Windows, though.  We might want
to take a close look at NetBSD, too, based on the GCC notes.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Muhammad Usama
Date:
Subject: Re: [HACKERS] Transactions involving multiple postgres foreignservers, take 2
Next
From: Peter Eisentraut
Date:
Subject: Re: Unicode normalization SQL functions