error C2011 in Visual Studio 2012

From: "Anderson C(dot) Carniel" <accarniel(at)gmail(dot)com>
To: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: error C2011 in Visual Studio 2012
Date: 2013-01-26 17:14:34
Message-ID: BAY167-W108B0BD00470DD40A9AB974B41A0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 redefinitionerror C2011: 'itimerval': 'struct' type redefinitionIn the file *pg_confi_os.h* at line 205 and 214I 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-01-26 17:16:18 Re: plpgsql_check_function - rebase for 9.3
Previous Message Andrew Dunstan 2013-01-26 17:04:35 Re: proposal - assign result of query to psql variable