Re: [HACKERS] Gist does not build with VC++ anymore

2006-06-24 Thread Bruce Momjian
Patch applied. It seems offsetof() can only find structure members in MSVC, not the offset of array elements in structures. Anyway, offsetof() was finding the first element, so the "[0]" is not needed. --- Magnus Hagander

Re: [HACKERS] Gist does not build with VC++ anymore

2006-06-24 Thread Magnus Hagander
> > 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

Re: [HACKERS] Gist does not build with VC++ anymore

2006-06-24 Thread Magnus Hagander
> 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

[HACKERS] Gist does not build with VC++ anymore

2006-06-24 Thread Magnus Hagander
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\acc