Gist does not build with VC++ anymore

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Gist does not build with VC++ anymore
Date: 2006-06-24 16:06:46
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCEA0FA88@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message PFC 2006-06-24 16:59:24 Re: vacuum, performance, and MVCC
Previous Message Greg Sabino Mullane 2006-06-24 15:55:53 Re: Exporting type OID macros in a cleaner fashion