Gist does not build with VC++ anymore

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Gist does not build with VC++ anymore
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA0FA88@algol.sollentuna.se
обсуждение исходный текст
Ответы Re: Gist does not build with VC++ anymore
Список 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 по дате отправления:

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: Exporting type OID macros in a cleaner fashion
Следующее
От: PFC
Дата:
Сообщение: Re: vacuum, performance, and MVCC