error C2011 in Visual Studio 2012 - Mailing list pgsql-hackers

From Anderson C. Carniel
Subject error C2011 in Visual Studio 2012
Date
Msg-id BAY167-W108B0BD00470DD40A9AB974B41A0@phx.gbl
Whole thread Raw
Responses Re: error C2011 in Visual Studio 2012
Re: error C2011 in Visual Studio 2012
List pgsql-hackers
Hi,

I'm trying to build a. dll file to extend the postgres server with C functions. I'm using visual studio 2012 to build the dll, and PostgreSQL 9.2. I imported all directories postgres "\include\server*" But I'm having the errors:

error C2011: 'timezone': 'struct' type redefinition

error C2011: 'itimerval': 'struct' type redefinition

In the file *pg_confi_os.h* at line 205 and 214

I tried this solution but had no success.

How to solve this problem?


I posted the same question at stackoverflow (http://stackoverflow.com/questions/14538652/error-c2011-timezonestruct-type-redefinition-postgres), no answers there.


Best regards,


[]s

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Performance Improvement by reducing WAL for Update Operation
Next
From: Gurjeet Singh
Date:
Subject: Re: [PERFORM] pgbench to the MAXINT