Gist does not build with VC++ anymore - Mailing list pgsql-hackers

From Magnus Hagander
Subject Gist does not build with VC++ anymore
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA0FA88@algol.sollentuna.se
Whole thread Raw
Responses Re: Gist does not build with VC++ anymore
List pgsql-hackers
I've updated my VC++ build env with latest CVS, and it no longer builds
because of changes to GIST:

src\backend\access\gist\gistutil.c(237) : error C2057: expected constant
expression
src\backend\access\gist\gistutil.c(237) : error C2466: cannot allocate
an array of constant size 0
src\backend\access\gist\gistutil.c(237) : error C2133: 'storage' :
unknown size


The problem appears to come from:
#define GEVHDRSZ    (offsetof(GistEntryVector, vector[0]))

Which can't be used in this context.

What would be the proper fix for that?

//Magnus


pgsql-hackers by date:

Previous
From: "Greg Sabino Mullane"
Date:
Subject: Re: Exporting type OID macros in a cleaner fashion
Next
From: PFC
Date:
Subject: Re: vacuum, performance, and MVCC