Skip site navigation (1) Skip section navigation (2)

Fix for clashing #defines of ERROR

From: Gerhard Häring <haering_python(at)gmx(dot)de>
To: pgsql-patches(at)postgresql(dot)org
Subject: Fix for clashing #defines of ERROR
Date: 2001-08-27 19:03:46
Message-ID: (view raw or whole thread)
Lists: pgsql-patches
This fixes clashing defines of ERROR. On win32, winapi.h is included, which 
includes windows.h, which #defines ERROR to 0. PostgreSQL's logging functions 
define ERROR to -1. This patch redefines ERROR to -1 to avoid current or 
future breakage of the logging functions.

mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    public key at homepage
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))

Attachment: win32_error_define_clash.dif
Description: text/plain (514 bytes)


pgsql-patches by date

Next:From: Gerhard HäringDate: 2001-08-27 19:08:09
Subject: Makefiles for building with mingw32 on win32
Previous:From: Barry LindDate: 2001-08-27 18:23:08
Subject: Re: Re: [BUGS] Bug #428: Another security issue with the JDBC driver.

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group