[postgis-tickets] [PostGIS] #3931: PG11: Remove TRUE and FALSE
PostGIS
trac at osgeo.org
Mon Nov 20 04:09:35 PST 2017
#3931: PG11: Remove TRUE and FALSE
------------------------+---------------------------
Reporter: Algunenano | Owner: pramsey
Type: defect | Status: new
Priority: high | Milestone: PostGIS 2.5.0
Component: postgis | Version: trunk
Keywords: |
------------------------+---------------------------
PostgreSQL has removed `TRUE` and `FALSE` from `c.h` keeping only `true`
and `false`:
From http://www.postgresql-archive.org/PostgreSQL-Weekly-News-
November-19-2017-td5992809.html
{{{
- Remove TRUE and FALSE. Code should be using true and false. Existing
code
can be changed to those in a backward compatible way. The definitions
in the
ecpg header files are left around to avoid upsetting those users
unnecessarily. Reviewed-by: Michael Paquier <[hidden email]>
https://git.postgresql.org/pg/commitdiff/6337865f36da34e9c89aaa292f976bde6df0b065
}}}
This breaks PostGIS compilation in several places, for example:
{{{
lwgeom_transform.c:170:9: error: ‘FALSE’ undeclared (first use in this
function); did you mean ‘FILE’?
return FALSE;
^~~~~
FILE
}}}
Github's PR: https://github.com/postgis/postgis/pull/172
I've checked PostgreSQL 9.2 headers and `true` was already available, so
changing `TRUE` for `true` should be safe.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3931>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list