Re: BUG #15167: error C2365: 'errcode' : redefi nition; previous definition

From: Hao Lee <mixtrue(at)gmail(dot)com>
To: Mixtrue <mixtrue(at)gmail(dot)com>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15167: error C2365: 'errcode' : redefi nition; previous definition
Date: 2018-04-23 06:49:52
Message-ID: CAGoxFiFNWtWW3h2qLsPeZc8ruoQWasTh3ye4YBh+4N_AQDQ1pQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The more info:
1>d:\postgres\src\include\utils/elog.h(131) : error C2365: 'errcode' :
redefinition; previous definition was 'typedef'
1> C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\crtdefs.h(560) : see declaration of 'errcode'

On Mon, Apr 23, 2018 at 2:29 PM, PG Bug reporting form <
noreply(at)postgresql(dot)org> wrote:

> The following bug has been logged on the website:
>
> Bug reference: 15167
> Logged by: Hao LI
> Email address: mixtrue(at)gmail(dot)com
> PostgreSQL version: 10.3
> Operating system: windows 7
> Description:
>
> Platform: windows 7 and vs 2008
>
> The source code checkout from : https://github.com/postgres/postgres.git.
> and the git log as following:
> commit 9cad926eb876a30d58a5b39789098da83a6ef91c
>
> I run the command from src\tools\msvc\build.pl DEBUG, and get error as
> following:
>
> d:\work\postgres\src\include\utils/elog.h(131): error C2365: 'errcode' :
> redefinition; previous definition was 'typedef'.
>
> Best Regards,
>
> Hao.
>
>

--
A Database Kernel Engineer. @
http://www.leehao.org.
MyBook: Inside into PostgreSQL Query Engine. @amazon China
<https://www.amazon.cn/%E5%9B%BE%E4%B9%A6/dp/B01KG96FVC/ref=sr_1_1?ie=UTF8&qid=1496719538&sr=8-1&keywords=postgresql%E6%9F%A5%E8%AF%A2%E5%BC%95%E6%93%8E%E6%BA%90%E7%A0%81%E6%8A%80%E6%9C%AF%E6%8E%A2%E6%9E%90>

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2018-04-23 07:41:47 Re: [HACKERS] [BUGS] Bug in Physical Replication Slots (at least 9.5)?
Previous Message PG Bug reporting form 2018-04-23 06:29:44 BUG #15167: error C2365: 'errcode' : redefi nition; previous definition